Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Refactoring 'equals' utility method
  • Loading branch information
Eugene Simakin committed Jan 5, 2014
1 parent 17be87a commit 88fe60c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jquery.twbsPagination.js
Expand Up @@ -193,10 +193,10 @@
});
},

equals: function (oldArray, newArray) {
equals: function (arr1, arr2) {
var i = 0;
while ((i < oldArray.length) || (i < newArray.length)) {
if (oldArray[i] !== newArray[i]) {
while ((i < arr1.length) || (i < arr2.length)) {
if (arr1[i] !== arr2[i]) {
return false;
}
i++;
Expand Down

0 comments on commit 88fe60c

Please sign in to comment.