From 8e3911220b0a0637d6beba47f550b8ee29aef982 Mon Sep 17 00:00:00 2001 From: Matthew McClure Date: Sun, 12 Apr 2015 14:08:50 -0700 Subject: [PATCH] revert fat arrows --- src/js/component.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/component.js b/src/js/component.js index 43ca985b3c..85a97b7050 100644 --- a/src/js/component.js +++ b/src/js/component.js @@ -599,7 +599,7 @@ Component.prototype.on = function(first, second, third){ let thisComponent = this; // When this component is disposed, remove the listener from the other component - let removeOnDispose = ()=> { + let removeOnDispose = function() { thisComponent.off(target, type, fn); }; // Use the same function ID so we can remove it later it using the ID @@ -610,7 +610,7 @@ Component.prototype.on = function(first, second, third){ // If the other component is disposed first we need to clean the reference // to the other component in this component's removeOnDispose listener // Otherwise we create a memory leak. - let cleanRemover = ()=> { + let cleanRemover = function() { thisComponent.off('dispose', removeOnDispose); }; // Add the same function ID so we can easily remove it later @@ -1078,7 +1078,7 @@ Component.prototype.emitTapEvents = function(){ } }); - let noTap = ()=> { + let noTap = function() { couldBeTap = false; }; // TODO: Listen to the original target. http://youtu.be/DujfpXOKUp8?t=13m8s