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 useCustomEvent
'sdetail
property:
- $(node).trigger('click', { foo: 'bar' })
+ event = new CustomEvent('click', {detail: { foo: 'bar' }})
+ node.dispatchEvent(event)