aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhwc4872012-06-12 16:58:25 -0700
committerhwc4872012-06-12 16:58:25 -0700
commitba4e58f11d8028375365ae0ddd0d3f601c7f64ca (patch)
tree51743b0968287c63c282117435c6e791baefa2bc
parent6c43ac77dcfcb85b9a29ddac8547ef7eb69d3937 (diff)
downloadninja-ba4e58f11d8028375365ae0ddd0d3f601c7f64ca.tar.gz
Removed references to NJUtils
-rwxr-xr-xjs/mediators/element-mediator.js7
-rwxr-xr-xjs/tools/TagTool.js1
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
14exports.ElementMediator = Montage.create(Component, { 14exports.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);