<title>The source code</title>\r
<link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />\r
<script type="text/javascript" src="../resources/prettify/prettify.js"></script>\r
<title>The source code</title>\r
<link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />\r
<script type="text/javascript" src="../resources/prettify/prettify.js"></script>\r
Ext.each([hexRE, rgbRE, hex3RE], function(re, idx){\r
base = (idx % 2 == 0) ? 16 : 10;\r
c = re.exec(s);\r
Ext.each([hexRE, rgbRE, hex3RE], function(re, idx){\r
base = (idx % 2 == 0) ? 16 : 10;\r
c = re.exec(s);\r
- \r
- Ext.each(start, function(v, i) {\r
- val[i] = superclass.doMethod.call(me, attr, v, end[i]);\r
- });\r
-\r
+ \r
+ for(i = 0, len = start.length; i < len; i++) {\r
+ v = start[i];\r
+ val[i] = superclass.doMethod.call(me, attr, v, end[i]);\r
+ }\r
val = 'rgb(' + floor(val[0]) + ',' + floor(val[1]) + ',' + floor(val[2]) + ')';\r
}else{\r
val = superclass.doMethod.call(me, attr, start, end);\r
val = 'rgb(' + floor(val[0]) + ',' + floor(val[1]) + ',' + floor(val[2]) + ')';\r
}else{\r
val = superclass.doMethod.call(me, attr, start, end);\r
- Ext.each(start, function(item, i){\r
- end[i] = item + end[i];\r
- });\r
+ for(var i=0,len=start.length; i<len; i++) {\r
+ end[i] = start[i] + end[i];\r
+ }\r