Permalink
Browse files

onready should trigger async to work on Opera

  • Loading branch information...
1 parent e6a2534 commit bdf12e24f4d5328e78aad6b3da8f70a30c7b2d0e @jussi-kalliokoski committed May 4, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 mike.js
View
@@ -265,7 +265,13 @@ void function (names, i) {
names = null;
-}(['ready', 'error', 'data', 'statechange', 'activity']);
+}(['error', 'data', 'statechange', 'activity']);
+
+Mike.onready = function (id) {
+ setTimeout(function () {
+ Mike.list[id].emit('ready', []);
+ }, 0);
+};
return Mike;

0 comments on commit bdf12e2

Please sign in to comment.