Hacker News new | ask | show | jobs
by joestelmach 5170 days ago
Though I did a poor job at documenting it, $.el is actually a function that accepts a tag name as the first parameter. The following two snippets are equivalent:

  $.el.div({className : 'foo'});

  $.el('div', {className : 'foo'});
1 comments

That's awesome! Yeah I see it now in the source's comments. Thanks for pointing that out; I'm sold.