Fix arguments passing in new postMessage code

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2594 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Brett Zamir 2013-10-14 03:15:16 +00:00
parent 3bc9f286a4
commit c54b7865e1
1 changed files with 1 additions and 1 deletions

View File

@ -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}), '*');
}