added a .run(..) method...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-05-13 23:38:25 +03:00
parent eab204e36a
commit 78a6beb8f4
2 changed files with 12 additions and 1 deletions

View File

@ -1378,6 +1378,17 @@ module.MetaActions = {
})
.unique() },
// Run a function in the context of the action set...
//
// This is here simply as a utility function, to enable running code
// in a concatinative manner without interruption...
run: function(func){
var res = func ? func.call(this) : undefined
return res === undefined ? this : res
},
// doc generators...
//
// XXX would be nice to make these prop of the action itself but I

View File

@ -1,6 +1,6 @@
{
"name": "ig-actions",
"version": "3.1.2",
"version": "3.2.0",
"description": "",
"main": "actions.js",
"scripts": {