From add68a7ee8b03016a270ff7414095130a2ac7ced Mon Sep 17 00:00:00 2001 From: Huei Tan Date: Sat, 2 Aug 2014 16:03:24 +0800 Subject: [PATCH] Fix setupHandlers There's no need for this parameter in `setupHandlers` --- raphael-zpd.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/raphael-zpd.js b/raphael-zpd.js index 132a7cd..553eaaf 100644 --- a/raphael-zpd.js +++ b/raphael-zpd.js @@ -3,7 +3,8 @@ * ================================================== * * This code is licensed under the following BSD license: - * + * + * Copyright 2014 Huei Tan (Fix setupHandlers). All rights reserved. * Copyright 2010 Gabriel Zabusek (Interface and feature extensions and modifications). All rights reserved. * Copyright 2010 Daniel Assange (Raphaƫl integration and extensions). All rights reserved. * Copyright 2009-2010 Andrea Leofreddi (original author). All rights reserved. @@ -128,7 +129,7 @@ RaphaelZPD = function(raphaelPaper, o) { /** * Handler registration */ - me.setupHandlers = function(root) { + me.setupHandlers = function() { me.root.onmousedown = me.handleMouseDown; me.root.onmousemove = me.handleMouseMove; me.root.onmouseup = me.handleMouseUp; @@ -315,7 +316,7 @@ RaphaelZPD = function(raphaelPaper, o) { // end of constructor - me.setupHandlers(me.root); + me.setupHandlers(); me.initialized = true; };