Skip to content

Commit

Permalink
fix: add create-wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyerburgh committed Dec 27, 2017
1 parent 4969f30 commit 6cb1711
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/wrappers/create-wrapper.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// @flow

import Vue from 'vue'
import Wrapper from './wrapper'
import VueWrapper from './vue-wrapper'

export default function createWrapper (
node: VNode | Component,
update: Function,
options: WrapperOptions
) {
return node instanceof Vue
? new VueWrapper(node, options)
: new Wrapper(node, update, options)
}

0 comments on commit 6cb1711

Please sign in to comment.