Skip to content

Commit 68ef3fa

Browse files
committed
[add] Add now function
1 parent c10079f commit 68ef3fa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

snc.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,12 @@ var snc = {
210210
for (var i = 0; i < limit; i++) {
211211
done();
212212
}
213+
},
214+
now: function (operation, response) {
215+
var then = function (data) {
216+
if (typeof response === 'function') response(data);
217+
};
218+
operation(then);
213219
}
214220
};
215221

0 commit comments

Comments
 (0)