X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6746dc89c47ed01b165cc1152533605f97eb8e8d..HEAD:/src/direct/RemotingMethod.js diff --git a/src/direct/RemotingMethod.js b/src/direct/RemotingMethod.js index 5c5c585f..0d8e5d0e 100644 --- a/src/direct/RemotingMethod.js +++ b/src/direct/RemotingMethod.js @@ -14,17 +14,16 @@ If you are unsure which license is appropriate for your use, please contact the */ /** * Small utility class used internally to represent a Direct method. - * Thi class is used internally. * @class Ext.direct.RemotingMethod * @ignore */ Ext.define('Ext.direct.RemotingMethod', { - + constructor: function(config){ var me = this, params = Ext.isDefined(config.params) ? config.params : config.len, name; - + me.name = config.name; me.formHandler = config.formHandler; if (Ext.isNumber(params)) { @@ -44,7 +43,7 @@ Ext.define('Ext.direct.RemotingMethod', { }); } }, - + /** * Takes the arguments for the Direct function and splits the arguments * from the scope and the callback. @@ -59,7 +58,7 @@ Ext.define('Ext.direct.RemotingMethod', { callback, scope, name; - + if (me.ordered) { callback = args[len]; scope = args[len + 1]; @@ -70,7 +69,7 @@ Ext.define('Ext.direct.RemotingMethod', { data = Ext.apply({}, args[0]); callback = args[1]; scope = args[2]; - + // filter out any non-existent properties for (name in data) { if (data.hasOwnProperty(name)) { @@ -80,11 +79,11 @@ Ext.define('Ext.direct.RemotingMethod', { } } } - + return { data: data, callback: callback, - scope: scope + scope: scope }; } });