Skip to content

Commit a691cbd

Browse files
james-brndwgnkazupon
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 55ca0f5 commit a691cbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/v2/guide/plugins.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ MyPlugin.install = function (Vue, options) {
4343
...
4444
})
4545
// 4. インスタンスメソッドを追加
46-
Vue.prototype.$myMethod = function (options) {
46+
Vue.prototype.$myMethod = function (methodOptions) {
4747
// 何らかのロジック ...
4848
}
4949
}

0 commit comments

Comments
 (0)