Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add document mousemove and mouseup listeners to the list of listeners…

… to be removed on destroy, fixes #394
  • Loading branch information...
commit e82f882242ab67ac76f5d684a054287afdd34b0e 1 parent abf2662
Kris Zyp authored January 21, 2013

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. 8  extensions/ColumnResizer.js
8  extensions/ColumnResizer.js
@@ -225,18 +225,18 @@ return declare(null, {
225 225
 					grid.mouseUpListen.resume();
226 226
 				}
227 227
 			);
228  
-			grid.mouseMoveListen = listen.pausable(document,
  228
+			grid._listeners.push(grid.mouseMoveListen = listen.pausable(document,
229 229
 				"mousemove" + (has("touch") ? ",touchmove" : ""),
230 230
 				miscUtil.throttleDelayed(function(e){ grid._updateResizerPosition(e); })
231  
-			);
232  
-			grid.mouseUpListen = listen.pausable(document,
  231
+			));
  232
+			grid._listeners.push(grid.mouseUpListen = listen.pausable(document,
233 233
 				"mouseup" + (has("touch") ? ",touchend" : ""),
234 234
 				function(e){
235 235
 					grid._resizeMouseUp(e);
236 236
 					grid.mouseMoveListen.pause();
237 237
 					grid.mouseUpListen.pause();
238 238
 				}
239  
-			);
  239
+			));
240 240
 			// initially pause the move/up listeners until a drag happens
241 241
 			grid.mouseMoveListen.pause();
242 242
 			grid.mouseUpListen.pause();

0 notes on commit e82f882

Please sign in to comment.
Something went wrong with that request. Please try again.