Skip to content

Commit

Permalink
MDL-33765 filter_glossary: fixed jshint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjnelson committed Jun 29, 2015
1 parent a42f94a commit 8e7774f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
Expand Up @@ -83,9 +83,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)){
Expand Down Expand Up @@ -113,6 +111,9 @@ Y.extend(AUTOLINKER, Y.Base, {
}
});
return lastPosition;
},
_deletealertpanel : function(alertpanels, alertpanelid) {
delete alertpanels[alertpanelid];
}
}, {
NAME : AUTOLINKERNAME,
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Expand Up @@ -83,9 +83,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)){
Expand Down Expand Up @@ -113,6 +111,9 @@ Y.extend(AUTOLINKER, Y.Base, {
}
});
return lastPosition;
},
_deletealertpanel : function(alertpanels, alertpanelid) {
delete alertpanels[alertpanelid];
}
}, {
NAME : AUTOLINKERNAME,
Expand Down
7 changes: 4 additions & 3 deletions filter/glossary/yui/src/autolinker/js/autolinker.js
Expand Up @@ -81,9 +81,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)){
Expand Down Expand Up @@ -111,6 +109,9 @@ Y.extend(AUTOLINKER, Y.Base, {
}
});
return lastPosition;
},
_deletealertpanel : function(alertpanels, alertpanelid) {
delete alertpanels[alertpanelid];
}
}, {
NAME : AUTOLINKERNAME,
Expand Down

0 comments on commit 8e7774f

Please sign in to comment.