Sha256: 4bbe39a33464639a7cf4e0a5ab6efb40d0dd2cf5211f5090685c62e95dfa0ea8
Contents?: true
Size: 443 Bytes
Versions: 5
Compression:
Stored size: 443 Bytes
Contents
var _ = require('../util') module.exports = { isLiteral: true, bind: function () { if (this.el !== this.vm.$el) { _.warn( 'v-ref should only be used on instance root nodes.' ) return } this.owner = this.vm.$parent this.owner.$[this.expression] = this.vm }, unbind: function () { if (this.owner.$[this.expression] === this.vm) { delete this.owner.$[this.expression] } } }
Version data entries
5 entries across 5 versions & 1 rubygems