Skip to content

Instantly share code, notes, and snippets.

@odoe
Created June 29, 2015 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save odoe/f737d860734303f393b0 to your computer and use it in GitHub Desktop.
Save odoe/f737d860734303f393b0 to your computer and use it in GitHub Desktop.
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