From 9b5ad78b393e87d84e79abe0abd0c96a685e5962 Mon Sep 17 00:00:00 2001 From: Jose Antonio Marquez Date: Thu, 2 Feb 2012 18:20:45 -0800 Subject: Removing reference to Ninja Utils This was removed, will need to check was it affects. Also added the removed checking script on Ninja didDraw to prompt user for cloud simulator. --- js/io/document/document-controller.js | 2 +- .../new-file-options-navigator.reel/new-file-options-navigator.js | 4 ++-- js/io/ui/save-as-dialog.reel/save-as-dialog.js | 4 ++-- js/ninja.reel/ninja.js | 3 +++ 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/js/io/document/document-controller.js b/js/io/document/document-controller.js index 8ce43dcc..d7a19e35 100755 --- a/js/io/document/document-controller.js +++ b/js/io/document/document-controller.js @@ -15,7 +15,7 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot var Montage = require("montage/core/core").Montage, Component = require("montage/ui/component").Component, Uuid = require("montage/core/uuid").Uuid, - nj= require("js/lib/NJUtils.js").NJUtils, + //nj= ("js/lib/NJUtils.js").NJUtils, HTMLDocument = require("js/io/document/html-document").HTMLDocument, TextDocument = require("js/io/document/text-document").TextDocument; diff --git a/js/io/ui/new-file-dialog/new-file-options-navigator.reel/new-file-options-navigator.js b/js/io/ui/new-file-dialog/new-file-options-navigator.reel/new-file-options-navigator.js index a747b8de..3a2e3e96 100644 --- a/js/io/ui/new-file-dialog/new-file-options-navigator.reel/new-file-options-navigator.js +++ b/js/io/ui/new-file-dialog/new-file-options-navigator.reel/new-file-options-navigator.js @@ -8,8 +8,8 @@ var Montage = require("montage/core/core").Montage, Component = require("montage/ui/component").Component, iconsListModule = require("js/components/ui/icon-list-basic/iconsList.reel"), treeModule = require("js/components/ui/tree-basic/tree.reel"), - newFileLocationSelectionModule = require("js/io/ui/new-file-dialog/new-file-workflow-controller"), - nj= require("js/lib/NJUtils.js").NJUtils; + newFileLocationSelectionModule = require("js/io/ui/new-file-dialog/new-file-workflow-controller"); + //nj= ("js/lib/NJUtils.js").NJUtils; var NewFileOptionsNavigator = exports.NewFileOptionsNavigator = Montage.create(Component, { diff --git a/js/io/ui/save-as-dialog.reel/save-as-dialog.js b/js/io/ui/save-as-dialog.reel/save-as-dialog.js index b20bed87..de5266a5 100644 --- a/js/io/ui/save-as-dialog.reel/save-as-dialog.js +++ b/js/io/ui/save-as-dialog.reel/save-as-dialog.js @@ -5,8 +5,8 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot */ var Montage = require("montage/core/core").Montage, - Component = require("montage/ui/component").Component, - nj= require("js/lib/NJUtils.js").NJUtils; + Component = require("montage/ui/component").Component; + //nj= ("js/lib/NJUtils.js").NJUtils; var SaveAsDialog = exports.SaveAsDialog = Montage.create(Component, { diff --git a/js/ninja.reel/ninja.js b/js/ninja.reel/ninja.js index 90015f5a..3b9fc1c5 100755 --- a/js/ninja.reel/ninja.js +++ b/js/ninja.reel/ninja.js @@ -101,6 +101,9 @@ exports.Ninja = Montage.create(Component, { didDraw: { value: function() { if(!this._didDraw) { + if (!this.application.ninja.coreIoApi.ioServiceDetected) { + var check = this.application.ninja.coreIoApi.cloudAvailable(); + } NJevent("appLoaded"); this._didDraw = true; } -- cgit v1.2.3