Fix arguments passing in new postMessage code
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2594 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
3bc9f286a4
commit
c54b7865e1
|
@ -4585,7 +4585,7 @@
|
|||
name = data.name,
|
||||
args = data.args;
|
||||
try {
|
||||
e.source.postMessage(JSON.stringify({namespace: 'svg-edit', id: cbid, result: svgCanvas[name](args)}), '*');
|
||||
e.source.postMessage(JSON.stringify({namespace: 'svg-edit', id: cbid, result: svgCanvas[name].apply(svgCanvas, args)}), '*');
|
||||
} catch(err) {
|
||||
e.source.postMessage(JSON.stringify({namespace: 'svg-edit', id: cbid, error: err.message}), '*');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue