Skip to content

Commit 32b6799

Browse files
james-brndwgnchrisvfritz
authored andcommitted
Rename instance method param to instanceOptions (vuejs#1026)
* Rename instance method param to instanceOptions It's unclear that the options parameter for the plugin has no relation to the options parameter for the instance method. Using the single name "options" is confusing. * Update instanceOptions to methodOptions in plugins.md
1 parent 95d5585 commit 32b6799

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/v2/guide/plugins.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ MyPlugin.install = function (Vue, options) {
4444
})
4545

4646
// 4. add an instance method
47-
Vue.prototype.$myMethod = function (options) {
47+
Vue.prototype.$myMethod = function (methodOptions) {
4848
// something logic ...
4949
}
5050
}

0 commit comments

Comments
 (0)