soyjavi il y a 13 ans
Parent
commit
1759a10e44
2 fichiers modifiés avec 49 ajouts et 52 suppressions
  1. 28 32
      src/lib/quo.debug.js
  2. 21 20
      src/lib/quo.js

+ 28 - 32
src/lib/quo.debug.js

@@ -1,7 +1,5 @@
-// Generated by CoffeeScript 1.3.3
-
 /*
-    QuoJS 2.1.2
+    QuoJS 2.2.0
     http://quojs.tapquo.com
 
     Copyright (C) 2011,2012 Javi Jiménez Villar (@soyjavi)
@@ -70,10 +68,10 @@
   "$$" in window || (window.$$ = Quo);
 
 }).call(this);
-// Generated by CoffeeScript 1.3.1
+// Generated by CoffeeScript 1.4.0
 
 /*
-  QuoJS 2.1
+  QuoJS 2.2.0
   (c) 2011, 2012 Javi Jiménez Villar (@soyjavi)
   http://quojs.tapquo.com
 */
@@ -237,10 +235,10 @@
   })(Quo);
 
 }).call(this);
-// Generated by CoffeeScript 1.3.3
+// Generated by CoffeeScript 1.4.0
 
 /*
-  QuoJS 2.1
+  QuoJS 2.2.0
   (c) 2011, 2012 Javi Jiménez Villar (@soyjavi)
   http://quojs.tapquo.com
 */
@@ -310,10 +308,10 @@
   })(Quo);
 
 }).call(this);
-// Generated by CoffeeScript 1.3.3
+// Generated by CoffeeScript 1.4.0
 
 /*
-  QuoJS 2.1
+  QuoJS 2.2.0
   (c) 2011, 2012 Javi Jiménez Villar (@soyjavi)
   http://quojs.tapquo.com
 */
@@ -349,7 +347,7 @@
       environment = {};
       environment.browser = _detectBrowser(user_agent);
       environment.os = _detectOS(user_agent);
-      environment.isMobile = (environment.os ? true : false);
+      environment.isMobile = !!environment.os;
       environment.screen = _detectScreen();
       return environment;
     };
@@ -364,7 +362,7 @@
     };
     _detectOS = function(user_agent) {
       var detected_os, os, supported;
-      detected_os = void 0;
+      detected_os = null;
       for (os in SUPPORTED_OS) {
         supported = user_agent.match(SUPPORTED_OS[os]);
         if (supported) {
@@ -386,10 +384,10 @@
   })(Quo);
 
 }).call(this);
-// Generated by CoffeeScript 1.3.3
+// Generated by CoffeeScript 1.4.0
 
 /*
-  QuoJS 2.1
+  QuoJS 2.2.0
   (c) 2011, 2012 Javi Jiménez Villar (@soyjavi)
   http://quojs.tapquo.com
 */
@@ -473,10 +471,10 @@
   })(Quo);
 
 }).call(this);
-// Generated by CoffeeScript 1.3.3
+// Generated by CoffeeScript 1.4.0
 
 /*
-  QuoJS 2.1
+  QuoJS 2.2.0
   (c) 2011, 2012 Javi Jiménez Villar (@soyjavi)
   http://quojs.tapquo.com
 */
@@ -579,10 +577,10 @@
   })(Quo);
 
 }).call(this);
-// Generated by CoffeeScript 1.3.1
+// Generated by CoffeeScript 1.4.0
 
 /*
-  QuoJS 2.1
+  QuoJS 2.2.0
   (c) 2011, 2012 Javi Jiménez Villar (@soyjavi)
   http://quojs.tapquo.com
 */
@@ -644,10 +642,10 @@
   })(Quo);
 
 }).call(this);
-// Generated by CoffeeScript 1.3.3
+// Generated by CoffeeScript 1.4.0
 
 /*
-  QuoJS 2.1.3
+  QuoJS 2.2.0
   (c) 2011, 2012 Javi Jiménez Villar (@soyjavi)
   http://quojs.tapquo.com
 */
@@ -684,7 +682,7 @@
       timeout: 0
     };
     $$.ajax = function(options) {
-      var abortTimeout, parameters, settings, xhr;
+      var abortTimeout, settings, xhr;
       settings = $$.mix($$.ajaxSettings, options);
       if (settings.type === DEFAULT.TYPE) {
         settings.url += $$.serializeParameters(settings.data, "?");
@@ -708,10 +706,6 @@
           return _xhrTimeout(xhr, settings);
         }, settings.timeout);
       }
-      if (settings.data) {
-        parameters = _serializeParameters(settings.data);
-        settings.data = parameters.substr(1, parameters.length);
-      }
       try {
         xhr.send(settings.data);
       } catch (error) {
@@ -868,10 +862,10 @@
   })(Quo);
 
 }).call(this);
-// Generated by CoffeeScript 1.3.3
+// Generated by CoffeeScript 1.4.0
 
 /*
-  QuoJS 2.1
+  QuoJS 2.2.0
   (c) 2011, 2012 Javi Jiménez Villar (@soyjavi)
   http://quojs.tapquo.com
 */
@@ -920,10 +914,10 @@
   })(Quo);
 
 }).call(this);
-// Generated by CoffeeScript 1.3.3
+// Generated by CoffeeScript 1.4.0
 
 /*
-    QuoJS 2.1
+    QuoJS 2.2.0
     (c) 2011, 2012 Javi Jiménez Villar (@soyjavi)
     http://quojs.tapquo.com
 */
@@ -949,11 +943,13 @@
       orientationchange: "resize"
     };
     $$.Event = function(type, touch) {
-      var event;
+      var event, property;
       event = document.createEvent("Events");
       event.initEvent(type, true, true, null, null, null, null, null, null, null, null, null, null, null, null);
       if (touch) {
-        for(var property in touch) event[property] = touch[property];
+        for (property in touch) {
+          event[property] = touch[property];
+        }
       }
       return event;
     };
@@ -1088,10 +1084,10 @@
   })(Quo);
 
 }).call(this);
-// Generated by CoffeeScript 1.3.3
+// Generated by CoffeeScript 1.4.0
 
 /*
-  QuoJS 2.1
+  QuoJS 2.2.0
   (c) 2011, 2012 Javi Jiménez Villar (@soyjavi)
   http://quojs.tapquo.com
 */

Fichier diff supprimé car celui-ci est trop grand
+ 21 - 20
src/lib/quo.js