diff options
author | hwc487 | 2012-06-12 16:58:25 -0700 |
---|---|---|
committer | hwc487 | 2012-06-12 16:58:25 -0700 |
commit | ba4e58f11d8028375365ae0ddd0d3f601c7f64ca (patch) | |
tree | 51743b0968287c63c282117435c6e791baefa2bc | |
parent | 6c43ac77dcfcb85b9a29ddac8547ef7eb69d3937 (diff) | |
download | ninja-ba4e58f11d8028375365ae0ddd0d3f601c7f64ca.tar.gz |
Removed references to NJUtils
-rwxr-xr-x | js/mediators/element-mediator.js | 7 | ||||
-rwxr-xr-x | js/tools/TagTool.js | 1 |
2 files changed, 0 insertions, 8 deletions
diff --git a/js/mediators/element-mediator.js b/js/mediators/element-mediator.js index 93a8dbce..cf93d8b7 100755 --- a/js/mediators/element-mediator.js +++ b/js/mediators/element-mediator.js | |||
@@ -12,13 +12,6 @@ var ElementController = require("js/controllers/elements/element-controller").El | |||
12 | NJUtils = require("js/lib/NJUtils").NJUtils; | 12 | NJUtils = require("js/lib/NJUtils").NJUtils; |
13 | 13 | ||
14 | exports.ElementMediator = Montage.create(Component, { | 14 | exports.ElementMediator = Montage.create(Component, { |
15 | |||
16 | _NJUtils: { | ||
17 | get: function() { | ||
18 | if (!NJUtils) NJUtils = require("js/lib/NJUtils").NJUtils; | ||
19 | return NJUtils; | ||
20 | } | ||
21 | }, | ||
22 | 15 | ||
23 | addDelegate: { | 16 | addDelegate: { |
24 | enumerable: false, | 17 | enumerable: false, |
diff --git a/js/tools/TagTool.js b/js/tools/TagTool.js index 3b1cd063..fac6798f 100755 --- a/js/tools/TagTool.js +++ b/js/tools/TagTool.js | |||
@@ -86,7 +86,6 @@ exports.TagTool = Montage.create(DrawingTool, { | |||
86 | // Create the element | 86 | // Create the element |
87 | if(this.options.selectedElement === "custom") { | 87 | if(this.options.selectedElement === "custom") { |
88 | element = document.application.njUtils.make(this.options.customName.value, null, this.application.ninja.currentDocument); | 88 | element = document.application.njUtils.make(this.options.customName.value, null, this.application.ninja.currentDocument); |
89 | if (!NJUtils) NJUtils = require("js/lib/NJUtils").NJUtils; | ||
90 | 89 | ||
91 | } else { | 90 | } else { |
92 | element = document.application.njUtils.make(this.options.selectedElement, null, this.application.ninja.currentDocument); | 91 | element = document.application.njUtils.make(this.options.selectedElement, null, this.application.ninja.currentDocument); |