Upgrade to ExtJS 4.0.7 - Released 10/19/2011
[extjs.git] / src / direct / RemotingMethod.js
index 0a5e771..0d8e5d0 100644 (file)
@@ -1,16 +1,29 @@
+/*
+
+This file is part of Ext JS 4
+
+Copyright (c) 2011 Sencha Inc
+
+Contact:  http://www.sencha.com/contact
+
+GNU General Public License Usage
+This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file.  Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html.
+
+If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact.
+
+*/
 /**
  * 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)) {
@@ -30,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.
@@ -45,7 +58,7 @@ Ext.define('Ext.direct.RemotingMethod', {
             callback,
             scope,
             name;
-            
+
         if (me.ordered) {
             callback = args[len];
             scope = args[len + 1];
@@ -56,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)) {
@@ -66,11 +79,12 @@ Ext.define('Ext.direct.RemotingMethod', {
                 }
             }
         }
-        
+
         return {
             data: data,
             callback: callback,
-            scope: scope    
+            scope: scope
         };
     }
 });
+