Last active
August 29, 2015 14:15
-
-
Save deanmarano/455e627f2dfbc1474e2f to your computer and use it in GitHub Desktop.
Before Ember setter
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
handleLocationChange: function() { | |
this.removeOldMarkers(this.get(‘currentLocations’)); | |
this.set(‘currentLocations’, this.get(‘locations’); | |
this.addMarkers(this.get(‘locations’)); | |
}.observes(‘locations’), | |
removeOldMarkers: function(markers) { | |
markers.forEach(function(marker) { | |
// remove markers from Google map | |
}); | |
} | |
addMarkers: function(markers) { | |
markers.forEach(function(marker) { | |
// add markers to Google map | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment