Defer setting of scope in setScope #49

Merged
merged 1 commit into from Aug 13, 2012
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Split
View
@@ -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