projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
ae0aded
)
Remove naming of anoymous functions. Unnecessary and slightly wrong.
author
Robert Konigsberg
<konigsberg@gmail.com>
Sun, 10 Feb 2013 16:43:22 +0000
(11:43 -0500)
committer
Robert Konigsberg
<konigsberg@gmail.com>
Sun, 10 Feb 2013 16:43:22 +0000
(11:43 -0500)
dygraph-utils.js
patch
|
blob
|
blame
|
history
diff --git
a/dygraph-utils.js
b/dygraph-utils.js
index
0e8cf23
..
0554204
100644
(file)
--- 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
*/
* 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 });
};
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
*/
* 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 {
if (elem.removeEventListener) {
elem.removeEventListener(type, fn, false);
} else {