pari: branch 2.0 r3886 - /branches/2.0/config/js/astman.js
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Wed Sep 24 19:35:45 CDT 2008
Author: pari
Date: Wed Sep 24 19:35:44 2008
New Revision: 3886
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=3886
Log:
make sure these are used as constructors
Modified:
branches/2.0/config/js/astman.js
Modified: branches/2.0/config/js/astman.js
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/config/js/astman.js?view=diff&rev=3886&r1=3885&r2=3886
==============================================================================
--- branches/2.0/config/js/astman.js (original)
+++ branches/2.0/config/js/astman.js Wed Sep 24 19:35:44 2008
@@ -2916,6 +2916,7 @@
u.callActions(); // this is Synchronus function - these actions will be called immediately and the result will be returned
*/
//
+ if ( !(this instanceof listOfSynActions) ){ return new listOfSynActions(file) ; }
this.FILE_CONTENT = null ;
this.params = {} ;
this.params.action = 'updateconfig';
@@ -3001,6 +3002,8 @@
x.callActions(after); // where after is the callback function
*/
+ if ( !(this instanceof listOfActions) ) { return (fn ? )new listOfActions(fn) : new listOfActions() ; }
+
this.FILE_CONTENT = null ;
this.current_batch = 1 ;
this.current_batch_actionnumber = 0 ;
More information about the asterisk-gui-commits
mailing list