瀏覽代碼

Implemented new version of QuoJS (2.0.1)

@soyjavi 14 年之前
父節點
當前提交
b2d146d8d3
共有 1 個文件被更改,包括 15 次插入4 次删除
  1. 15 4
      src/lib/QuoJS.js

+ 15 - 4
src/lib/QuoJS.js

@@ -1,8 +1,8 @@
 /*
-    QuoJS 2.0
+    QuoJS 2.0.1
     http://quojs.tapquo.com
 
-    Generated by CoffeeScript 1.3.2
+    Generated by CoffeeScript 1.3.1
 
     Copyright (C) 2011,2012 Javi Jiménez Villar (@soyjavi)
 
@@ -25,7 +25,6 @@
     DEALINGS IN THE SOFTWARE.
 */
 
-
 (function() {
   var Quo;
 
@@ -394,6 +393,18 @@
       dom_elements = Array.prototype.slice.call(dom_elements);
       return dom_elements;
     };
+    $$.fn.find = function(selector) {
+      var result;
+      result = void 0;
+      if (this.length === 1) {
+        result = Quo.query(this[0], selector);
+      } else {
+        result = this.map(function() {
+          return Quo.query(this, selector);
+        });
+      }
+      return $$(result);
+    };
     $$.fn.parent = function(selector) {
       var ancestors;
       ancestors = (selector ? _findAncestors(this) : this.instance(PARENT_NODE));
@@ -1052,4 +1063,4 @@
     };
   })(Quo);
 
-}).call(this);
+}).call(this);