Refactor scripts (#2465)
* Refactor all kinds of scripts * Update docs to ensure linter passes
This commit is contained in:
parent
62172cbe08
commit
48e7fd1711
23 changed files with 1695 additions and 340 deletions
|
|
@ -466,7 +466,7 @@ var Modal = {
|
|||
|
||||
If you do it like above, you could run into issues when using it:
|
||||
|
||||
```js
|
||||
```javascript
|
||||
var MyModal = {
|
||||
view: function() {
|
||||
return m(Modal, {
|
||||
|
|
@ -483,7 +483,7 @@ var MyModal = {
|
|||
|
||||
Instead, you should forward *single* attributes into vnodes:
|
||||
|
||||
```js
|
||||
```javascript
|
||||
// PREFER
|
||||
var Modal = {
|
||||
// ...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue