Created
June 29, 2015 15:37
-
-
Save odoe/f737d860734303f393b0 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 Ember from 'ember'; | |
| var mapid1 = 'b64bdd175e124a5e8226a9efc8a048c0'; | |
| var mapid2 = '010f412d4d0a4e8f9ff09ead37963ac7'; | |
| export default Ember.Component.extend({ | |
| classNames: ['btn btn-primary'], | |
| tagName: 'button', | |
| click() { | |
| var mapid = this.get('mapid'); | |
| if (mapid === mapid1) { | |
| this.set('mapid', mapid2); | |
| } else { | |
| this.set('mapid', mapid1); | |
| } | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment