Skip to content

Commit

Permalink
Merge pull request madrobby#49 from okonet/master
Browse files Browse the repository at this point in the history
Defer setting of scope in setScope
  • Loading branch information
madrobby committed Aug 13, 2012
2 parents c61b3fe + 5782b14 commit c588df1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keymaster.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
for(k in _MODIFIERS) assignKey[k] = false;

// set current scope (default 'all')
function setScope(scope){ _scope = scope || 'all' };
function setScope(scope){ setTimeout(function(){ _scope = scope || 'all' }, 0) };
function getScope(){ return _scope || 'all' };

// delete all handlers for a given scope
Expand Down

0 comments on commit c588df1

Please sign in to comment.