aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-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);