Fixed issue 456 by adding a svgCanvas.ready() function

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1328 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Alexis Deveria 2010-02-02 20:45:16 +00:00
parent fad1c4395d
commit b4840e8f7f
2 changed files with 12 additions and 0 deletions

View File

@ -2780,6 +2780,8 @@ function svg_edit_setup() {
} }
}); });
} }
svgCanvas.runCallback();
} }
}); });
}()); }());

View File

@ -7327,6 +7327,16 @@ function BatchCommand(text) {
} }
this.clear(); this.clear();
this.ready = function(cb) {
this.callback = cb;
}
this.runCallback = function() {
if(this.callback) {
this.callback();
}
}
function getElem(id) { function getElem(id) {
if(svgroot.querySelector) { if(svgroot.querySelector) {