PHP Classes

File: public/js/lib/vue/src/directives/public/el.js

Recommend this page to a friend!
  Classes of Sergey Beskorovayniy   Silex MVC Blog   public/js/lib/vue/src/directives/public/el.js   Download  
File: public/js/lib/vue/src/directives/public/el.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Silex MVC Blog
MVC based blog using on the Silex micro-framework
Author: By
Last change:
Date: 7 years ago
Size: 560 bytes
 

Contents

Class file image Download
import { camelize, hasOwn, defineReactive } from '../../util/index' import { EL } from '../priorities' export default { priority: EL, bind () { /* istanbul ignore if */ if (!this.arg) { return } var id = this.id = camelize(this.arg) var refs = (this._scope || this.vm).$els if (hasOwn(refs, id)) { refs[id] = this.el } else { defineReactive(refs, id, this.el) } }, unbind () { var refs = (this._scope || this.vm).$els if (refs[this.id] === this.el) { refs[this.id] = null } } }