diff options
Diffstat (limited to 'js/tools/TagTool.js')
-rwxr-xr-x | js/tools/TagTool.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/js/tools/TagTool.js b/js/tools/TagTool.js index 508e2a85..3b1cd063 100755 --- a/js/tools/TagTool.js +++ b/js/tools/TagTool.js | |||
@@ -86,6 +86,8 @@ 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 | } else { | 91 | } else { |
90 | element = document.application.njUtils.make(this.options.selectedElement, null, this.application.ninja.currentDocument); | 92 | element = document.application.njUtils.make(this.options.selectedElement, null, this.application.ninja.currentDocument); |
91 | } | 93 | } |