Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #13297 from gaye/bug-918303
Browse files Browse the repository at this point in the history
Bug 918303 - Quick advance through emails
  • Loading branch information
Gareth Aye committed Dec 20, 2013
2 parents 5f1d2cb + 5468ba5 commit 961e802
Show file tree
Hide file tree
Showing 20 changed files with 983 additions and 156 deletions.
23 changes: 23 additions & 0 deletions apps/email/js/array.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*global define */
define(function(require) {
var array = {
/**
* @param {Array} array some array.
* @param {Function} callback function to test for each element.
* @param {Object} thisObject object to use as this for callback.
*/
indexOfGeneric: function(array, callback, thisObject) {
var result = -1;
array.some(function(value, index) {
if (callback.call(thisObject, value)) {
result = index;
return true;
}
});

return result;
}
};

return array;
});
Loading

0 comments on commit 961e802

Please sign in to comment.