minor fix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-01-24 05:15:42 +03:00
parent 2166fa31ac
commit 2da1b17fb9
2 changed files with 3 additions and 2 deletions

View File

@ -1516,9 +1516,10 @@ function Actions(a, b){
// attrs...
var last = arg[arg.length-1]
var attrs = last != null && typeof(last) != typeof('str') ? arg.pop() : {}
var ldoc = typeof(arg[1]) == typeof('str') ? arg[1] : null
// create a new action...
var a = obj[k] = new Action(k, arg[0], arg[1], func)
var a = obj[k] = new Action(k, arg[0], ldoc, func)
// setup attrs...
Object.keys(attrs)

View File

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