Updated Branches: refs/heads/master 3cf401e30 -> 55e46cecd
[CB-683] also firing deviceready event through fireDocumentEvent, so we get an event object passed into the handler Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/55e46cec Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/55e46cec Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/55e46cec Branch: refs/heads/master Commit: 55e46cecd73e06a4866f084ffa8513219ef68421 Parents: 3cf401e Author: Fil Maj <maj....@gmail.com> Authored: Fri May 11 08:43:48 2012 -0700 Committer: Fil Maj <maj....@gmail.com> Committed: Fri May 11 08:43:48 2012 -0700 ---------------------------------------------------------------------- lib/scripts/bootstrap.js | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/55e46cec/lib/scripts/bootstrap.js ---------------------------------------------------------------------- diff --git a/lib/scripts/bootstrap.js b/lib/scripts/bootstrap.js index 06e7419..0c765e0 100755 --- a/lib/scripts/bootstrap.js +++ b/lib/scripts/bootstrap.js @@ -32,7 +32,7 @@ // Fire onDeviceReady event once all constructors have run and // cordova info has been received from native side. channel.join(function() { - channel.onDeviceReady.fire(); + require('cordova').fireDocumentEvent('deviceready'); }, channel.deviceReadyChannelsArray); }, [ channel.onDOMContentLoaded, channel.onNativeReady ]); @@ -49,4 +49,4 @@ channel.onNativeReady.fire(); } -}(window)); \ No newline at end of file +}(window));