Skip to content

Instantly share code, notes, and snippets.

@norrs
Created March 6, 2013 20:48
Show Gist options
  • Save norrs/5102920 to your computer and use it in GitHub Desktop.
Save norrs/5102920 to your computer and use it in GitHub Desktop.
bindMapProperties: function () {
var self = this;
this.options.mapProperties.bind("change:displayOrphans", this.update, this);
this.options.mapProperties.get("categories").each(function(category){
category.bind("change", self.update, self);
});
this.options.mapProperties.bind("change:displayOrphans", this.update, this);
this.options.mapProperties.bind("change:displayTopologyErrors", this.updateRenderTopologyErrors, this);
this.options.mapProperties.get("position").each(function (position) {
position.bind("change", self.updateRenderGroupByPosition, self);
});
},
unbindMapProperties: function () {
this.options.mapProperties.unbind("change");
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment