PHP Classes

File: public/js/lib/vue/src/directives/internal/transition.js

Recommend this page to a friend!
  Classes of Sergey Beskorovayniy   Silex MVC Blog   public/js/lib/vue/src/directives/internal/transition.js   Download  
File: public/js/lib/vue/src/directives/internal/transition.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: 536 bytes
 

Contents

Class file image Download
import { resolveAsset, addClass, removeClass } from '../../util/index' import { TRANSITION } from '../priorities' import Transition from '../../transition/transition' export default { priority: TRANSITION, update (id, oldId) { var el = this.el // resolve on owner vm var hooks = resolveAsset(this.vm.$options, 'transitions', id) id = id || 'v' oldId = oldId || 'v' el.__v_trans = new Transition(el, id, hooks, this.vm) removeClass(el, oldId + '-transition') addClass(el, id + '-transition') } }