Setup participant's canvas ID upon the participant callback
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@119 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
a9b4731df6
commit
184d44f984
|
@ -225,12 +225,16 @@ SVG-edit Google Wave Gadget @ <a href="http://svg-edit.googlecode.com/" target="
|
|||
delta[elem.id] = wave.util.printJson(ob, false);
|
||||
wave.getState().submitDelta(delta);
|
||||
}
|
||||
|
||||
function setupId() {
|
||||
svgCanvas.setIdPrefix("svg_"+wave.getViewer().getId()+"_");
|
||||
}
|
||||
|
||||
function main() {
|
||||
svgCanvas = svg_edit_setup();
|
||||
svgCanvas.setIdPrefix("svg_"+wave.getViewer().getId()+"_");
|
||||
if (wave && wave.isInWaveContainer()) {
|
||||
wave.setStateCallback(stateUpdated);
|
||||
wave.setParticipantCallback(setupId);
|
||||
}
|
||||
svgCanvas.bind("changed", sendDelta);
|
||||
svgCanvas.bind("cleared", stateUpdated);
|
||||
|
|
Loading…
Reference in New Issue