diff options
author | Eric Guzman | 2012-04-26 03:16:50 -0700 |
---|---|---|
committer | Eric Guzman | 2012-04-26 03:16:50 -0700 |
commit | 110aa15b48ec24063815aa3b86c7f8f041543a02 (patch) | |
tree | d0debb235807dd73f48e0793a73d37cc41ecf59c /js/tools/InkBottleTool.js | |
parent | 143105a0b9c7765898b22d53489b4bd8df3dff2e (diff) | |
parent | bcc8f8616f5ad4bf310928da6cbc01da12f6e468 (diff) | |
download | ninja-110aa15b48ec24063815aa3b86c7f8f041543a02.tar.gz |
Merge branch 'refs/heads/master' into CSSPanelUpdates
Diffstat (limited to 'js/tools/InkBottleTool.js')
-rwxr-xr-x | js/tools/InkBottleTool.js | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/js/tools/InkBottleTool.js b/js/tools/InkBottleTool.js index 95c2e71d..960c19fa 100755 --- a/js/tools/InkBottleTool.js +++ b/js/tools/InkBottleTool.js | |||
@@ -84,14 +84,22 @@ exports.InkBottleTool = Montage.create(ModifierToolBase, { | |||
84 | }; | 84 | }; |
85 | } | 85 | } |
86 | 86 | ||
87 | colorInfo.borderInfo = { borderStyle:this.options._borderStyle.value, | 87 | if(this.options.useBorderWidth.checked || this.options.useBorderStyle.checked) { |
88 | borderWidth:this.options._borderWidth.value, | 88 | colorInfo.borderInfo = {}; |
89 | borderUnits:this.options._borderWidth.units | 89 | if(this.options.useBorderWidth.checked) { |
90 | }; | 90 | colorInfo.borderInfo.borderWidth = this.options._borderWidth.value; |
91 | colorInfo.borderInfo.borderUnits = this.options._borderWidth.units; | ||
92 | } | ||
93 | if(this.options.useBorderStyle.checked) { | ||
94 | colorInfo.borderInfo.borderStyle = this.options._borderStyle.value; | ||
95 | } | ||
96 | } | ||
91 | 97 | ||
92 | colorInfo.strokeInfo = { strokeSize:this.options._strokeSize.value, | 98 | if(this.options.useStrokeSize.checked) { |
93 | strokeUnits:this.options._strokeSize.units | 99 | colorInfo.strokeInfo = {}; |
94 | }; | 100 | colorInfo.strokeInfo.strokeSize = this.options._strokeSize.value; |
101 | colorInfo.strokeInfo.strokeUnits = this.options._strokeSize.units; | ||
102 | } | ||
95 | 103 | ||
96 | ElementsMediator.setColor(this.application.ninja.selectedElements, colorInfo, false, "Change", "inkBottleTool"); | 104 | ElementsMediator.setColor(this.application.ninja.selectedElements, colorInfo, false, "Change", "inkBottleTool"); |
97 | } | 105 | } |