Skip to content

Commit

Permalink
revert fat arrows
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcc committed Apr 12, 2015
1 parent b6994b1 commit 8e39112
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/js/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8e39112

Please sign in to comment.