Created
June 21, 2018 09:15
-
-
Save mmintel/8a99111c2192a95a61208c3b514c5972 to your computer and use it in GitHub Desktop.
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
import View from './view'; | |
import Model from './model'; | |
import Controller from './controller'; | |
export default class Tooltip { | |
constructor(options) { | |
this.model = new Model(); | |
this.controller = new Controller(this.model); | |
this.view = new View(this.controller, options); | |
} | |
show() { | |
this.controller.show(); | |
} | |
hide() { | |
this.controller.hide(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment