Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Move asyncDispatch to rAF
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Mar 10, 2014
1 parent 168de03 commit fbe4ebe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dispatcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@
}
},
asyncDispatchEvent: function(inEvent) {
setTimeout(this.dispatchEvent.bind(this, inEvent), 0);
requestAnimationFrame(this.dispatchEvent.bind(this, inEvent));
}
};
dispatcher.boundHandler = dispatcher.eventHandler.bind(dispatcher);
Expand Down

0 comments on commit fbe4ebe

Please sign in to comment.