mirror of
https://github.com/marko-js/marko.git
synced 2026-02-01 16:07:13 +00:00
Cleanup tests and add assertions that all deprecated tests log warnings, and all non deprecated tests don't.
10 lines
301 B
JavaScript
10 lines
301 B
JavaScript
exports.templateData = {
|
|
reverseIterator: function(arrayList, callback) {
|
|
var statusVar = { first: 0, last: arrayList.length - 1 };
|
|
for (var i = arrayList.length - 1; i >= 0; i--) {
|
|
statusVar.index = i;
|
|
callback(arrayList[i], statusVar);
|
|
}
|
|
}
|
|
};
|