Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

refactor .find()

  • Loading branch information...
commit 6b083d287b5e1c4c67856ba9e79cd1b6e2faa8e7 1 parent 1276e4a
@tj tj authored
Showing with 1 addition and 11 deletions.
  1. +1 −11 index.js
View
12 index.js
@@ -614,17 +614,7 @@ List.prototype.getStyle = function(prop){
*/
List.prototype.find = function(selector){
- // TODO: real implementation
- var list = new List([], this.selector);
- var el, els;
- for (var i = 0; i < this.els.length; ++i) {
- el = this.els[i];
- els = query.all(selector, el);
- for (var j = 0; j < els.length; ++j) {
- list.els.push(els[j]);
- }
- }
- return list;
+ return dom(selector, this);
};
/**
Please sign in to comment.
Something went wrong with that request. Please try again.