Skip to content
This repository has been archived by the owner on Dec 25, 2017. It is now read-only.

Commit

Permalink
fix(asset): fix cannot register validator issue
Browse files Browse the repository at this point in the history
Closes #108
  • Loading branch information
kazupon committed Dec 12, 2015
1 parent 009b4c7 commit dce7e96
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/asset.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ export default function (Vue) {
Vue.config._assetTypes.push('validator')

// set global validators asset
Vue.options.validators = validators
let assets = Object.create(null)
Vue.util.extend(assets, validators)
Vue.options.validators = assets

// set option merge strategy
let strats = Vue.config.optionMergeStrategies
Expand Down

0 comments on commit dce7e96

Please sign in to comment.