From 023df10f311e2885b7efe0002e0bf556c36fdea9 Mon Sep 17 00:00:00 2001 From: Bryce Curtis Date: Thu, 6 Jan 2011 22:50:13 -0600 Subject: [PATCH] Allow features/modules to initialize code before deviceready fires. CupcakeLocalStorage uses this capability to delay deviceready until local storage has been read and inited. --- framework/assets/js/phonegap.js.base | 59 +++++++++++++++++++++++++++- framework/assets/js/storage.js | 2 + 2 files changed, 59 insertions(+), 2 deletions(-) diff --git a/framework/assets/js/phonegap.js.base b/framework/assets/js/phonegap.js.base index af007dcb..513a55b3 100755 --- a/framework/assets/js/phonegap.js.base +++ b/framework/assets/js/phonegap.js.base @@ -136,8 +136,14 @@ PhoneGap.Channel.join = function(h, c) { var f = function() { if (!(--i)) h(); } - for (var j=0; j