MDL-38356 JavaScript: Correct the test for currentform

This commit is contained in:
Andrew Robert Nicols
2013-03-13 18:15:16 +00:00
parent d749cbc9a2
commit 10c6db96fb
+1 -3
View File
@@ -16,9 +16,7 @@ YUI.add('moodle-core-formchangechecker',
*/
initializer : function(config) {
var formid = 'form#' + this.get('formid');
if (!currentform) {
// If the form was not found, then we can't check for changes.
if (!Y.one(formid)) {
return;
}