diff --git a/lib/ripple/bootstrap.js b/lib/ripple/bootstrap.js index 27bf13b5..7e52ec94 100644 --- a/lib/ripple/bootstrap.js +++ b/lib/ripple/bootstrap.js @@ -40,10 +40,10 @@ function _createFrame(src) { _bindObjects(frame); } }, 1), - ael = frame.contentWindow.addEventListener; + ael = frame.contentWindow.addEventListener, handlers = []; - //HACK: This is to get around a bug in webkit where it doesn't seem to + //HACK: This is to get around a bug in webkit where it doesn't seem to // fire the load handlers when we readd the iframe back into the DOM // https://github.com/blackberry/Ripple-UI/issues/190 frame.contentWindow.addEventListener = function (event, handler) { @@ -57,7 +57,7 @@ function _createFrame(src) { frame.fireHandlers = function () { handlers.forEach(function (handler) { - return handler && handler(); + return handler && handler({}); }); }; });