Ticket #73: 73.patch
| File 73.patch, 1.8 kB (added by tschaub, 1 year ago) |
|---|
-
tests/lib/GeoExt/widgets/Popup.html
old new 67 67 68 68 t.ok(context.mapPanel.el.child("div." + pop.popupCls),"Map panel contains popup"); 69 69 70 //tearDown(context);70 tearDown(context); 71 71 } 72 72 73 73 function test_anchorPopup(t) { … … 97 97 action = "popup expand" 98 98 pop.expand(); 99 99 100 //tearDown(context);100 tearDown(context); 101 101 } 102 102 103 103 … … 141 141 action = "popup collapse"; 142 142 pop.collapse(); 143 143 144 //tearDown(context);144 tearDown(context); 145 145 146 146 } 147 147 … … 171 171 action = "popup collapse"; 172 172 pop.collapse(); 173 173 174 //tearDown(context);174 tearDown(context); 175 175 } 176 176 177 177 </script> -
lib/GeoExt/widgets/Popup.js
old new 288 288 * Utility method for unbinding events that call for popup repositioning. 289 289 */ 290 290 unbindFromMapPanel: function() { 291 //stop position with feature 292 this.map.events.un({ 293 "move" : this.position, 294 scope : this 295 }); 291 if(this.map && this.map.events) { 292 //stop position with feature 293 this.map.events.un({ 294 "move" : this.position, 295 scope : this 296 }); 297 } 296 298 297 299 this.un("resize", this.position); 298 300 this.un("collapse", this.position);