Restore printing json for now...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@121 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
8b0fcfe8f6
commit
8ac63bb5e6
|
@ -190,8 +190,8 @@ SVG-edit Google Wave Gadget @ <a href="http://svg-edit.googlecode.com/" target="
|
||||||
var k = this.id;
|
var k = this.id;
|
||||||
var v = state.get(k);
|
var v = state.get(k);
|
||||||
if (v) {
|
if (v) {
|
||||||
var ob = v;
|
var ob;
|
||||||
// eval("ob=" + v); // FIXME: Yes, I'm using eval... Dirty, dirty..
|
eval("ob=" + v); // FIXME: Yes, I'm using eval... Dirty, dirty..
|
||||||
if (ob) {
|
if (ob) {
|
||||||
svgCanvas.updateElementFromJson(ob);
|
svgCanvas.updateElementFromJson(ob);
|
||||||
} else {
|
} else {
|
||||||
|
@ -206,9 +206,9 @@ SVG-edit Google Wave Gadget @ <a href="http://svg-edit.googlecode.com/" target="
|
||||||
|
|
||||||
// New nodes
|
// New nodes
|
||||||
for (var k in keys) {
|
for (var k in keys) {
|
||||||
|
var ob;
|
||||||
var v = state.get(keys[k]);
|
var v = state.get(keys[k]);
|
||||||
var ob = v;
|
eval("ob=" + v); // FIXME: Yes, I'm using eval... Dirty, dirty..
|
||||||
// eval("ob=" + v); // FIXME: Yes, I'm using eval... Dirty, dirty..
|
|
||||||
if (ob) svgCanvas.updateElementFromJson(ob)
|
if (ob) svgCanvas.updateElementFromJson(ob)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -223,7 +223,7 @@ SVG-edit Google Wave Gadget @ <a href="http://svg-edit.googlecode.com/" target="
|
||||||
}
|
}
|
||||||
var ob = { element: elem.nodeName, attr: attrs };
|
var ob = { element: elem.nodeName, attr: attrs };
|
||||||
// printJson seems to have a problem not quoting keys like 'stroke-width'
|
// printJson seems to have a problem not quoting keys like 'stroke-width'
|
||||||
delta[elem.id] = ob; //wave.util.printJson(ob, true);
|
delta[elem.id] = wave.util.printJson(ob, true);
|
||||||
wave.getState().submitDelta(delta);
|
wave.getState().submitDelta(delta);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue