Skip to content

domcom v0.1.5

Compare
Choose a tag to compare
@taijiweb taijiweb released this 16 Jan 14:01
· 127 commits to master since this release

What's new

  • api(new): new api for delegating event: Tag.delegateByHolder, Tag.delegateByComponent, Tag.delegate
  • api(new): dc.error, dc.onerror
  • api(change): rename component event: beforeMount -> mount, afterUnmount -> 'unmount', beforeAttatch -> attach, afterDetach -> detach; remove afterMount
  • api(change): Hmtl component's super class becomes Tag, wrap with div, add Html.text setter, add attrs
  • api(change): Component.renderDom() -> Component.renderDom(oldBaseComponent), delete Component.getBaseComponent
  • api(change): remove Component.setNode and Component.setFirstNode
  • api(change): add BaseComponent.removing field to mark removing, split Component.setParentAndNextNode to setParentNode and setNextNode
  • api(change): api for new If(test, then, else, , merge, recursive), dc.mergeIf, dc.recursiveIf
  • improvement: Tag.propBind, Tag.cssBind: return bound reactive function for Tag props or style props
  • improvement: Tag.prop(propName) and Tag.css(propName) return domValue of props at first, if undefined then return cache value
  • improvement: Component.on, Component.off
  • refactor: split property.coffee to core/property/ folder (classFn, events, style, ...), and move core/prop-util.coffee to core/property/css-arith.coffee
  • refactor: Both Tag and List use ListMixin
  • refactor: remove constructTextLikeComponent for Text, Comment, Html, Cdata, use super(text) directly
  • fix two bug: one in Component.setParentAndNextNode, another one in Component.on
  • fix a bug about List.nextNode