Permalink
Browse files

The message event needs the event argument. Not sure how my test case…

…s missed this…
  • Loading branch information...
1 parent f0245c6 commit d321cbc638a1c09db52bbf1fa2d7cf5ffde3ac5f @ChiperSoft committed Aug 5, 2011
Showing with 6 additions and 8 deletions.
  1. +2 −2 timed.js
  2. +4 −6 timed.min.js
View
@@ -5,7 +5,7 @@
* Licensed under the BSD license (BSD_LICENSE.txt)
*
* @author <a href="mailto:chipersoft@gmail.com">Jarvis Badgley</a>
- * @version 1.3
+ * @version 1.3.1
*/
@@ -98,7 +98,7 @@
if (!!window.postMessage && !!window.addEventListener) {
//uses the postMessage feature when available. postMessage events fire before the timeout loop triggers
var wrapper, id = Math.round(Math.random()*1000000);
- window.addEventListener('message', wrapper = function () {
+ window.addEventListener('message', wrapper = function (event) {
window.removeEventListener('message', wrapper);
if (event.data === id) callback();
});
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit d321cbc

Please sign in to comment.