Skip to content

Commit

Permalink
Added scope protection for the helper debugging.
Browse files Browse the repository at this point in the history
  • Loading branch information
turnermm committed Nov 6, 2018
1 parent acff500 commit 44730b4
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,15 +194,17 @@ function getCurrentWikiNS() {
/**
* event handler
* handles both mousepresses and keystrokes from FCKeditor window
* assigned in fckeditor.html
* handles some mousepresses and all keystrokes from CKEditor window
*/
var nn__nn=0;
var getnum = function () { return (++nn__nn); }
(function(w){
var nn__nn=0;
var getnum = function () { return (++nn__nn); }
w.getnum = getnum;
})(window);
function handlekeypress (e) {
var n = getnum();
var n = window.getnum();
if(ourLockTimerIsSet) {
lockTimerRefresh();
}
Expand Down

0 comments on commit 44730b4

Please sign in to comment.