Commit 67e6cefa authored by Mark Nelson's avatar Mark Nelson
Browse files

MDL-33765 filter_glossary: fixed jshint warning

parent 025e0130
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
......@@ -79,9 +79,7 @@ Y.extend(AUTOLINKER, Y.Base, {
// Register alertpanel for stacking.
alertpanelid = '#moodle-dialogue-' + alertpanel.get('COUNT');
alertpanel.on('complete', function(){
delete self.alertpanels[alertpanelid];
});
alertpanel.on('complete', this._deletealertpanel(self.alertpanels, alertpanelid));
// We already have some windows opened, so set the right position...
if (!Y.Object.isEmpty(this.alertpanels)){
......@@ -109,6 +107,9 @@ Y.extend(AUTOLINKER, Y.Base, {
}
});
return lastPosition;
},
_deletealertpanel : function(alertpanels, alertpanelid) {
delete alertpanels[alertpanelid];
}
}, {
NAME : AUTOLINKERNAME,
......
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