silk-gui
Version:
GUI for developers and Node OS
24 lines (20 loc) • 500 B
JavaScript
module.exports = {
priority: 1000,
isLiteral: true,
bind: function () {
if (!this._isDynamicLiteral) {
this.update(this.expression)
}
},
update: function (id) {
var vm = this.el.__vue__ || this.vm
this.el.__v_trans = {
id: id,
// resolve the custom transition functions now
// so the transition module knows this is a
// javascript transition without having to check
// computed CSS.
fns: vm.$options.transitions[id]
}
}
}