Permalink
Browse files

refactor .find()

  • Loading branch information...
tj committed Mar 14, 2013
1 parent 1276e4a commit 6b083d287b5e1c4c67856ba9e79cd1b6e2faa8e7
Showing with 1 addition and 11 deletions.
  1. +1 −11 index.js
View
@@ -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);
};
/**

0 comments on commit 6b083d2

Please sign in to comment.