PHP Classes

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

Recommend this page to a friend!
  Classes of Sergey Beskorovayniy  >  Silex MVC Blog  >  public/js/lib/vue/src/directives/public/text.js  >  Download  
File: public/js/lib/vue/src/directives/public/text.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: 5 years ago
Size: 225 bytes
 

Contents

Class file image Download
import { _toString } from '../../util/index'

export default {

  bind () {
    this.attr = this.el.nodeType === 3
      ? 'data'
      : 'textContent'
  },

  update (value) {
    this.el[this.attr] = _toString(value)
  }
}
For more information send a message to info at phpclasses dot org.