From cf30bd0bb4d37387d3d0fc40c7b4802ca4b59dd8 Mon Sep 17 00:00:00 2001 From: Vidar Hokstad Date: Fri, 12 Jun 2009 18:34:28 +0000 Subject: [PATCH] Trying to replace the prefix with a mechanism for using a callback for the id; wave.Participant() shouldn't work - Participant() is the constructor for the Participant objects returned from getViewer() etc. git-svn-id: http://svg-edit.googlecode.com/svn/trunk@127 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svgcanvas.js | 1 + wave/svg-edit.xml | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index b6a95f3a..6b4d6bdb 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -42,6 +42,7 @@ function SvgCanvas(c) // private functions var getId = function() { + if (events["getid"]) return call("getid",obj_num); return idprefix+obj_num; } diff --git a/wave/svg-edit.xml b/wave/svg-edit.xml index 2599cb32..6d578371 100644 --- a/wave/svg-edit.xml +++ b/wave/svg-edit.xml @@ -257,18 +257,18 @@ SVG-edit Google Wave Gadget @