Created
February 12, 2015 22:09
-
-
Save deanmarano/6210a98e2e015f7fa126 to your computer and use it in GitHub Desktop.
After 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
locations: function(key, value, oldValue) { | |
if(value) { | |
this.removeOldMarkers(oldValue); | |
this.addMarkers(value); | |
} | |
return value; | |
}.property(), | |
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