Skip to content

Commit

Permalink
fix(plugins): allow plugin to return
Browse files Browse the repository at this point in the history
  • Loading branch information
tunnckoCore committed Mar 13, 2017
1 parent c634c79 commit 4b0936e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions dist/dush.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ function dush () {
*/

use: function use (plugin) {
plugin(app);
return app
var ret = plugin(app);
return ret || app
},

/**
Expand Down
4 changes: 2 additions & 2 deletions dist/dush.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ function dush () {
*/

use: function use (plugin) {
plugin(app);
return app
var ret = plugin(app);
return ret || app
},

/**
Expand Down
2 changes: 1 addition & 1 deletion dist/dush.umd.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified dist/dush.umd.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/dush.umd.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ export default function dush () {
*/

use (plugin) {
plugin(app)
return app
let ret = plugin(app)
return ret || app
},

/**
Expand Down

0 comments on commit 4b0936e

Please sign in to comment.