Commit 3164af65 by kimth

Merge pull request #684 from MITx/kimth/fix-widow-js

Fix widow js
parents ffd9c030 a9b03483
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
$(".ui-accordion-header a, .ui-accordion-content .subtitle").each(function() { $(".ui-accordion-header a, .ui-accordion-content .subtitle").each(function() {
var wordArray = $(this).text().split(" "); var wordArray = $(this).text().split(" ");
var finalTitle = ""; var finalTitle = "";
if (wordArray.isEmptyObject()) { if ($.isEmptyObject(wordArray)) {
for (i=0;i<=wordArray.length-1;i++) { for (i=0;i<=wordArray.length-1;i++) {
finalTitle += wordArray[i]; finalTitle += wordArray[i];
if (i == (wordArray.length-2)) { if (i == (wordArray.length-2)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment