Sha256: 020ff77549c9dee3968a1b8c530ffab07dd3da09ac18e03c70246ff341f1d276
Contents?: true
Size: 747 Bytes
Versions: 2
Compression:
Stored size: 747 Bytes
Contents
rio.Tag = { build: function (tag, body, args) { args = args || {}; if (Object.isArray(body)) { for (var i=body.length; i--;) { var elt = body[i]; body[i] = elt.html ? elt.html() : elt; } } else if (body && body.html) { body = body.html(); } var node = Builder.node(tag, args, body); return $(node); }, tags: [ "span", "div", "table", "thead", "tbody", "tr", "td", "th", "h1", "h2", "hr", "br", "a", "p", "textarea", "label", "input", "button", "img", "option", "pre", "ul", "li", "iframe", "link", "script", "select", "sup" ] }; (function() { rio.Tag.tags.each(function(tag) { rio.Tag[tag] = rio.Tag.build.curry(tag); }); })();
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
riojs-0.0.7 | public/javascripts/lib/tag.js |
riojs-0.0.6 | public/javascripts/lib/tag.js |