|
|
@@ -5,10 +5,8 @@ module.exports = {
|
|
|
priority: 1500,
|
|
|
|
|
|
bind: function () {
|
|
|
+ /* istanbul ignore if */
|
|
|
if (!this.arg) {
|
|
|
- process.env.NODE_ENV !== 'production' && _.warn(
|
|
|
- 'v-el requires an argument.'
|
|
|
- )
|
|
|
return
|
|
|
}
|
|
|
var id = this.id = _.camelize(this.arg)
|
|
|
@@ -21,7 +19,6 @@ module.exports = {
|
|
|
},
|
|
|
|
|
|
unbind: function () {
|
|
|
- if (!this.id) return
|
|
|
var refs = (this._scope || this.vm).$els
|
|
|
if (refs[this.id] === this.el) {
|
|
|
refs[this.id] = null
|