From a537fd67fb9c4cf0ed381d781f9e569e79e5d503 Mon Sep 17 00:00:00 2001 From: Robert Konigsberg Date: Sun, 10 Feb 2013 11:43:22 -0500 Subject: [PATCH] Remove naming of anoymous functions. Unnecessary and slightly wrong. --- dygraph-utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dygraph-utils.js b/dygraph-utils.js index 0e8cf23..0554204 100644 --- a/dygraph-utils.js +++ b/dygraph-utils.js @@ -183,7 +183,7 @@ Dygraph.addEvent = function addEvent(elem, type, fn) { * on the event. The function takes one parameter: the event object. * @private */ -Dygraph.prototype.addEvent = function addEvent(elem, type, fn) { +Dygraph.prototype.addEvent = function(elem, type, fn) { Dygraph.addEvent(elem, type, fn); this.registeredEvents_.push({ elem : elem, type : type, fn : fn }); }; @@ -197,7 +197,7 @@ Dygraph.prototype.addEvent = function addEvent(elem, type, fn) { * on the event. The function takes one parameter: the event object. * @private */ -Dygraph.removeEvent = function addEvent(elem, type, fn) { +Dygraph.removeEvent = function(elem, type, fn) { if (elem.removeEventListener) { elem.removeEventListener(type, fn, false); } else { -- 2.7.4