Skip to content

Commit

Permalink
revert: feat(index): support automatically install for standalone
Browse files Browse the repository at this point in the history
This reverts commit ada2673.
  • Loading branch information
kazupon committed Dec 1, 2015
1 parent ec2b91b commit 25b8059
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import extend from './extend'


/**
* install
* plugin
*
* @param {Object} Vue
* @param {Object} opts
*/

export default function install (Vue, opts = { lang: 'en', locales: {} }) {
export default function (Vue, opts = { lang: 'en', locales: {} }) {
defineConfig(Vue.config, opts.lang)
extend(Vue, opts.locales)
}
Expand All @@ -30,12 +30,3 @@ function defineConfig (config, lang) {
set: (val) => { lang = val }
})
}


/**
* install automaticlly
*/

if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(install)
}

0 comments on commit 25b8059

Please sign in to comment.