Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Fixed bug where it was crashing when switch palettes when the selection dialog was already open

Mike McGanneff70e0c320d
diff --git a/src/js/palettes/wv.palettes.custom.js b/src/js/palettes/wv.palettes.custom.js
index 88b8cb571..def285e6c 100644
--- a/src/js/palettes/wv.palettes.custom.js
+++ b/src/js/palettes/wv.palettes.custom.js
@@ -44,7 +44,7 @@ wv.palettes.custom = wv.palettes.custom || function(config, models, layer) {
// FIXME: SUPER HACK
if ( wv.dialogs && wv.dialogs.customPalette ) {
wv.dialogs.customPalette.destroy();
- model.layers.events.off("remove", onLayerRemoved);
+ models.layers.events.off("remove", onLayerRemoved);
wv.dialogs.customPalette = null;
}