Permalink
Browse files

Reset properties to null instead of deleting them

  • Loading branch information...
davidaurelio committed Feb 22, 2013
1 parent 183f87d commit b6314d06d5903aae686f014b7c91766dc04a1585
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/renderer/svg/svg_event_handlers.js
@@ -194,10 +194,7 @@ define([
targetId = data._dragId;
event.diffX = clientX - start[0];
event.diffY = clientY - start[1];
- delete data._currentTouch;
- delete data._dragId;
- delete data._startEventPos;
- delete data._lastEventPos;
+ data._dragId = data._startEventPos = data._lastEventPos = null;
type = 'pointerup';
break;

0 comments on commit b6314d0

Please sign in to comment.