Skip to content
This repository
Browse code

Merge pull request #49 from okonet/master

Defer setting of scope in setScope
  • Loading branch information...
commit c588df14b2e14fa83b80adbf2dcc03a9b9221da5 2 parents c61b3fe + 5782b14
Thomas Fuchs authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  keymaster.js
2  keymaster.js
@@ -141,7 +141,7 @@
141 141 for(k in _MODIFIERS) assignKey[k] = false;
142 142
143 143 // set current scope (default 'all')
144   - function setScope(scope){ _scope = scope || 'all' };
  144 + function setScope(scope){ setTimeout(function(){ _scope = scope || 'all' }, 0) };
145 145 function getScope(){ return _scope || 'all' };
146 146
147 147 // delete all handlers for a given scope

0 comments on commit c588df1

Please sign in to comment.
Something went wrong with that request. Please try again.