projects
/
roojs1
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sync
[roojs1]
/
Array.js
diff --git
a/Array.js
b/Array.js
index
bb89287
..
a3b684d
100644
(file)
--- a/
Array.js
+++ b/
Array.js
@@
-61,23
+61,23
@@
Roo.applyIf(Array.prototype, {
* @param {Array} o The array to compare to
* @returns {Boolean} true if the same
*/
* @param {Array} o The array to compare to
* @returns {Boolean} true if the same
*/
- equals : function(
o
)
+ equals : function(
b
)
{
// https://stackoverflow.com/questions/3115982/how-to-check-if-two-arrays-are-equal-with-javascript
{
// https://stackoverflow.com/questions/3115982/how-to-check-if-two-arrays-are-equal-with-javascript
- if (
a
=== b) {
+ if (
this
=== b) {
return true;
}
return true;
}
- if (
a == null ||
b == null) {
+ if (b == null) {
return false;
}
return false;
}
- if (
a
.length !== b.length) {
+ if (
this
.length !== b.length) {
return false;
}
// sort?? a.sort().equals(b.sort());
return false;
}
// sort?? a.sort().equals(b.sort());
- for (var i = 0; i <
a
.length; ++i) {
- if (
a
[i] !== b[i]) {
+ for (var i = 0; i <
this
.length; ++i) {
+ if (
this
[i] !== b[i]) {
return false;
}
}
return false;
}
}