Skip to content

Commit

Permalink
Fix use mixin API feat continuous operation (#5610)
Browse files Browse the repository at this point in the history
* Update use.js

fix:use feat continuous operation

* Update mixin.js

fix:mixin feat continuous operation
  • Loading branch information
lzxb authored and yyx990803 committed May 9, 2017
1 parent ca02043 commit 1c40e32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/core/global-api/mixin.js
Expand Up @@ -5,5 +5,6 @@ import { mergeOptions } from '../util/index'
export function initMixin (Vue: GlobalAPI) {
Vue.mixin = function (mixin: Object) {
this.options = mergeOptions(this.options, mixin)
return this
}
}
2 changes: 1 addition & 1 deletion src/core/global-api/use.js
Expand Up @@ -6,7 +6,7 @@ export function initUse (Vue: GlobalAPI) {
Vue.use = function (plugin: Function | Object) {
/* istanbul ignore if */
if (plugin.installed) {
return
return this
}
// additional parameters
const args = toArray(arguments, 1)
Expand Down

0 comments on commit 1c40e32

Please sign in to comment.