Skip to content

Releases: benzap/DOM.Barf

Version 0.2.1

20 Mar 18:25

Choose a tag to compare

  • Minor fixes to DOM.Barf.Merge function

Version 0.2.0

20 Mar 15:49

Choose a tag to compare

  • Two new functions DOM.Barf.ToDOMNode and DOM.Barf.Merge

h2. DOM.Barf.ToDOMNode(s)

Used to create a DOM object from the generated string

h2. DOM.Barf.Merge(a, b)

Merge function, which merges the second argument object into the first argument object.

Example

     var create_defaultButton = function(attrs, children) {
         var attrs = attrs || {};

         return _s.ToDOMNode(
             _s.button(_s.Merge({value: "Test Button"}, attrs), children)
         )
     }

     console.log(create_defaultButton({value: "New button"}, "test"));

Version 0.1.0

13 Feb 00:26

Choose a tag to compare

  • First Release