Commit d6e739ab by Sebastián Katzer

Allow to manually fire queued events [fixes #1444]

parent a9286318
......@@ -504,6 +504,15 @@ exports.fireEvent = function (event) {
};
/**
* Fire queued events once the device is ready and all listeners are registered.
*
* @return [ Void ]
*/
exports.fireQueuedEvents = function() {
exports._exec('ready');
};
/**
* Merge custom properties with the default values.
*
* @param [ Object ] options Set of custom values.
......@@ -957,7 +966,9 @@ if (!Array.from) {
// Called after 'deviceready' event
channel.deviceready.subscribe(function () {
exports._exec('ready');
if (!window.skipLocalNotificationReady) {
exports.fireQueuedEvents();
}
});
// Called before 'deviceready' event
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment