Permalink
Browse files

MDL-38356 JavaScript: Correct the test for currentform

  • Loading branch information...
1 parent d749cbc commit 10c6db96fb8d1ca5e65568c2be749e477421ecf8 @andrewnicols andrewnicols committed Mar 13, 2013
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/yui/formchangechecker/formchangechecker.js
@@ -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;
}

0 comments on commit 10c6db9

Please sign in to comment.