Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
removed a couple global variables
  • Loading branch information
Silly-V committed Jan 22, 2017
1 parent a96fc70 commit 1b0e9a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Script Panel 2/ScriptPanel_2.jsx

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions Script Panel/ScriptPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -323,13 +323,13 @@ function ScriptPanel(){
var canvas=canvasArea.graphics;
var counter=obj.total;
while(counter>=0){
for(all in obj){
for(var all in obj){
if(all.match(/\d{1,2}$/g) && all.match(/\d{1,2}$/g)==counter){
var thisShp=obj[all];
if(all.match('group')){
var ctr=obj[all].total;
while(ctr>=0){
for(paths in obj[all]){
for(var paths in obj[all]){
if(paths.match(/\d{1,2}$/g) && paths.match(/\d{1,2}$/g)==ctr){
drawPath(obj[all][paths]);
}
Expand Down Expand Up @@ -624,7 +624,7 @@ function ScriptPanel(){
return;
}
sf.open('r');
var scriptString = sf.read().replace("#target illustrator",'');
var scriptString = sf.read();
sf.close();

// Thanks to: https://forums.adobe.com/thread/287506?tstart=0
Expand Down Expand Up @@ -1633,7 +1633,7 @@ function ScriptPanel(){
deselectEverything(this);
}
var sep = w.add('group'); sep.size = [200,4];
var g2_holder = w.add('group'); g2_holder.orientation = 'stack';
var g2_holder = w.add('group'); g2_holder.orientation = 'stacked';
var g2 = g2_holder.add('group');
var btn_min = g2.add('button', undefined, 'Min'); btn_min.size=[31,31];
btn_min.helpTip='Minimize this palette';
Expand Down Expand Up @@ -1772,4 +1772,4 @@ function ScriptPanel(){
thisPaletteWindow.show();
}

ScriptPanel();
ScriptPanel();

0 comments on commit 1b0e9a8

Please sign in to comment.