Skip to content

Instantly share code, notes, and snippets.

@mfournier
Created December 9, 2013 12:45
Show Gist options
  • Save mfournier/7871742 to your computer and use it in GitHub Desktop.
Save mfournier/7871742 to your computer and use it in GitHub Desktop.
--- lib/riemann/dash/public/views/grid.js
+++ lib/riemann/dash/public/views/grid.js
@@ -354,7 +354,7 @@
Grid.prototype.remove = function(e) {
var row_key = this.row_fn(e);
var col_key = this.col_fn(e);
- if (this.events[row_key][col_key]) {
+ if (this.events[row_key] && this.events[row_key][col_key]) {
delete this.events[row_key][col_key];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment