Skip to content

v2.0.0

Latest
Compare
Choose a tag to compare
@brendo brendo released this 22 Feb 22:26
· 5 commits to master since this release
c89dc5f

This release removes jQuery from Twine.

Whilst it is mostly backwards compatible, there's a few exceptions:

  • data-bind-attribute will no longer invoke values that are functions. This behaviour seemed to be inadvertently possible because this logic will fall to jQuery's attr method which would handle executing functions before setting the resulting value.
  • .trigger(eventName, data) no longer works. The upgrade path is to use CustomEvent's detail property:
- $(node).trigger('click', { foo: 'bar' })
+ event = new CustomEvent('click', {detail: { foo: 'bar' }})
+ node.dispatchEvent(event)