From 74cb13b6d74e455fda7d75231078f5216ff298fc Mon Sep 17 00:00:00 2001 From: Kevin Kwok Date: Wed, 2 Sep 2009 16:51:11 +0000 Subject: [PATCH] bind now returns the previously bound function git-svn-id: http://svg-edit.googlecode.com/svn/trunk@524 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svgcanvas.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index d8673906..a046e143 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -2584,7 +2584,9 @@ function SvgCanvas(c) }; this.bind = function(event, f) { + var old = events[event]; events[event] = f; + return old; }; this.setIdPrefix = function(p) {