smartxml: Allow for describing node properties
[fnpeditor.git] / src / fnpjs / actions.js
index c49373a..f380ed6 100644 (file)
@@ -72,10 +72,11 @@ _.extend(Action.prototype, Backbone.Events, {
         }
         return this._cache;
     },
         }
         return this._cache;
     },
-    execute: function() {
+    execute: function(callback) {
         var state = this.getState();
         var state = this.getState();
+        callback = callback || function() {};
         if(state.allowed) {
         if(state.allowed) {
-            return state.execute.call(this, this.params, this.appObject);
+            return state.execute.call(this, callback, this.params, this.appObject);
         }
         throw new Error('Execution not allowed');
     }
         }
         throw new Error('Execution not allowed');
     }