Created
September 18, 2016 23:05
-
-
Save takahiro-saeki/253c41b7587e5f1eea3217aa367d2384 to your computer and use it in GitHub Desktop.
The code to be used in the medium
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Test { | |
| constructor(options) { | |
| this.options = Object.assign({ | |
| elem: '#app', | |
| time: 1000, | |
| animate: 'normal' | |
| }, options) | |
| ... | |
| } | |
| ... | |
| } | |
| new Test({time: 3000, animate: 'animate'}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment