git.ithinksw.org
/
extjs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgrade to ExtJS 4.0.7 - Released 10/19/2011
[extjs.git]
/
src
/
direct
/
RemotingMethod.js
diff --git
a/src/direct/RemotingMethod.js
b/src/direct/RemotingMethod.js
index
5c5c585
..
0d8e5d0
100644
(file)
--- 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.
*/
/**
* 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', {
* @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;
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)) {
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.
/**
* 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;
callback,
scope,
name;
-
+
if (me.ordered) {
callback = args[len];
scope = args[len + 1];
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];
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)) {
// 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,
return {
data: data,
callback: callback,
- scope: scope
+ scope: scope
};
}
});
};
}
});