Skip to content

Commit

Permalink
runAction should return jQuery deferred
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Jun 3, 2016
1 parent 9259380 commit 4f88d48
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import ActionMsgbox from "./src/ActionMsgbox";
import ActionGrowler from "./src/ActionGrowl";
import ActionBootstrapHighlight from "./src/ActionBootstrapHighlight";
import BootstrapFormHighlight from "./src/BootstrapFormHighlight";
import AIM from "./src/AIM";

window['AIM'] = AIM;
window['ActionMsgbox'] = ActionMsgbox;
window['FormUtils'] = FormUtils;
window['BootstrapFormHighlight'] = BootstrapFormHighlight;
Expand All @@ -27,7 +29,7 @@ window['Action'] = Action;
a.submit(arg1, arg2);
};

(<any>window).runAction = function(actionName:string, args, arg1 = null, arg2 = null) {
(<any>window).runAction = function(actionName:string, args, arg1 = null, arg2 = null) : JQueryDeferred<any> {
var a = new Action;
var funcargs:Array<any> = [actionName];
if (typeof args === "function") {
Expand Down

0 comments on commit 4f88d48

Please sign in to comment.