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

Fix widow js
This commit is contained in:
kimth
2012-09-13 14:41:25 -07:00

View File

@@ -41,7 +41,7 @@
$(".ui-accordion-header a, .ui-accordion-content .subtitle").each(function() {
var wordArray = $(this).text().split(" ");
var finalTitle = "";
if (wordArray.isEmptyObject()) {
if ($.isEmptyObject(wordArray)) {
for (i=0;i<=wordArray.length-1;i++) {
finalTitle += wordArray[i];
if (i == (wordArray.length-2)) {