component / dom

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

mixin #9

Closed tj closed 12 years ago

tj commented 12 years ago

for example instead of:

var pager = new Pager;
pager.el.appendTo('body');

any object could become "dom"-like, and reference this.el internally:

var pager = new Pager;
pager.appendTo('body');
tj commented 12 years ago

fuck it

esundahl commented 11 years ago

I really like this idea. Any reason you decided against it?

ianstormtaylor commented 11 years ago

hahaha whatever it was the story must be good with a "fuck it" closing - agree that it also sounds kind badass at first glance

tj commented 11 years ago

I can't remember now haha, I think it would probably take more explaining than saying just use this.el, although this.el should usually be a host dom object so maybe this could still helpings a bit since it would really be document.querySelector('body').appendChild(pager.el)