component / dom

DOM traversal, manipulation and events aggregate library (like jQuery)
228 stars 49 forks source link

add .toElement() support #50

Open tj opened 11 years ago

tj commented 11 years ago

or similar naming, so instead of:

var view = new StreamView(stream);
ul.append(view.el);

you could do:

var view = new StreamView(stream);
ul.append(view);

although this does look like a bug, tough call

yields commented 11 years ago

+1 this doesn't look like a bug to me, golang does this sort of things, i think it's pretty elegant ;)

ianstormtaylor commented 11 years ago

+1 this sounds awesome