Reorganized some functions on corresponding scripts to make it clearer of what was supposed to go in each one

This commit is contained in:
Jorge Vásquez Pérez
2017-04-13 15:30:13 -07:00
parent 631cb8f607
commit b038e66615
5 changed files with 20 additions and 119 deletions
+3 -9
View File
@@ -1,4 +1,6 @@
if (Array.prototype.getOne==null) Array.prototype.getOne=function(item){ //Extends the Array class with the getOne functions wich
//Useful extensions to the JavaScript class versions that come with the default ExtendScript version.
if (Array.prototype.getOne==null) Array.prototype.getOne=function(item){ //Extends the Array class with the getOne functions wich
var val = -1;
for(i=0;i<=this.length;i++){
if(this[i]==item){
@@ -7,11 +9,3 @@
}
return val;
}
function yFactor(n,f){
if((typeof(n)=='number'&&typeof(f)=='number')&&(n>f)){
value = n - (n%f);
return(value);
}else{
alert('error');
}
}