Last active
August 29, 2015 14:05
-
-
Save fsmanuel/16f5fe57748532b3d47c to your computer and use it in GitHub Desktop.
component
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
Ember.ObjectController.create({ | |
createMarker: function() { | |
var marker = new InfoBox(); | |
var markerView = this.get('container').lookup('component:custom-marker'); | |
markerView.append(); | |
markerView.set('controller', Ember.ObjectController.create({ | |
marker: marker, | |
settingIcon: settingIcon, | |
settingSize: settingSize, | |
settingColor: settingColor, | |
row: row | |
})); | |
Ember.run.scheduleOnce('afterRender', markerView, function() { | |
var $detached = this.$().detach(); | |
marker.setContent($detached.get(0)); | |
}); | |
} | |
} |
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
export default Ember.Component.extend({ | |
layoutName: 'components/custom-marker' | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment