projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
ec10caeb4d660be9d6fe1433237c58681897c953
[platform/framework/web/crosswalk-tizen.git]
/
1
define(function () {
2
3
/**
4
* Iterates over a callback a set amount of times
5
*/
6
function times(n, callback, thisObj){
7
var i = -1;
8
while (++i < n) {
9
if ( callback.call(thisObj, i) === false ) {
10
break;
11
}
12
}
13
}
14
15
return times;
16
17
});