projects
/
roojs1
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix #6430 - messing arouds with cards BS4
[roojs1]
/
Array.js
diff --git
a/Array.js
b/Array.js
index
c775775
..
4095aee
100644
(file)
--- a/
Array.js
+++ b/
Array.js
@@
-20,7
+20,7
@@
Roo.applyIf(Array.prototype, {
*/
indexOf : function(o){
for (var i = 0, len = this.length; i < len; i++){
*/
indexOf : function(o){
for (var i = 0, len = this.length; i < len; i++){
- if(this[i] == o)
return i;
+ if(this[i] == o)
{ return i; }
}
return -1;
},
}
return -1;
},
@@
-42,15
+42,16
@@
Roo.applyIf(Array.prototype, {
map : function(fun )
{
var len = this.length >>> 0;
map : function(fun )
{
var len = this.length >>> 0;
- if (typeof fun != "function")
+ if (typeof fun != "function")
{
throw new TypeError();
throw new TypeError();
-
+ }
var res = new Array(len);
var thisp = arguments[1];
for (var i = 0; i < len; i++)
{
var res = new Array(len);
var thisp = arguments[1];
for (var i = 0; i < len; i++)
{
- if (i in this)
+ if (i in this)
{
res[i] = fun.call(thisp, this[i], i, this);
res[i] = fun.call(thisp, this[i], i, this);
+ }
}
return res;
}
return res;
@@
-59,4
+60,4
@@
Roo.applyIf(Array.prototype, {
});
});
-
\ No newline at end of file
+