From a9b03483aa452a741778181a27b2c0347a2c4ea3 Mon Sep 17 00:00:00 2001 From: kimth Date: Thu, 13 Sep 2012 17:38:20 -0400 Subject: [PATCH] Fix widow js --- lms/templates/courseware/courseware.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/templates/courseware/courseware.html b/lms/templates/courseware/courseware.html index 9c0ad9dd99..15e4dead9a 100644 --- a/lms/templates/courseware/courseware.html +++ b/lms/templates/courseware/courseware.html @@ -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)) {