Browse files

Call 'ready' callbacks asynchronously

  • Loading branch information...
1 parent e26d7bb commit d7534a7d9d1c5c7dca4ddb9c57230d8e0b0e40fe @ryanwilliams committed Jun 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/index.js
View
2 src/index.js
@@ -161,7 +161,7 @@ var jah = {
ready: function(func) {
if (!__jah__.__blockReady && __jah__.__isReady) {
- func()
+ setTimeout(func, 1)
} else {
if (!__jah__.__readyList) {
__jah__.__readyList = [];

0 comments on commit d7534a7

Please sign in to comment.