From 67491f0979843f52cd2448c28f2e790908878ad9 Mon Sep 17 00:00:00 2001 From: Joshua Smith Date: Thu, 28 Nov 2013 08:43:59 -0500 Subject: [PATCH] Fix init bug --- scripts/io.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/io.js b/scripts/io.js index ff14ff7..4aa0b9c 100644 --- a/scripts/io.js +++ b/scripts/io.js @@ -24,7 +24,7 @@ firetext.io.init = function (api, callback) { deviceAPI = 'deviceStorage'; storage = navigator.getDeviceStorage('sdcard'); if (!storage) { - init('file', callback); + firetext.io.init('file', callback); return; } @@ -37,7 +37,7 @@ firetext.io.init = function (api, callback) { deviceAPI = null; storage = null; alert("The SDCard on your device is shared, and thus not available. Try disabling USB Mass Storage in your settings."); - init('file', callback); + firetext.io.init('file', callback); return; } else { storage.onchange = function (change) { @@ -51,7 +51,7 @@ firetext.io.init = function (api, callback) { deviceAPI = null; storage = null; alert("Unable to get the space used by the SDCard: " + this.error); - init('file', callback); + firetext.io.init('file', callback); return; }; } else {