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
This commit is contained in:
@@ -2780,6 +2780,8 @@ function svg_edit_setup() {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
svgCanvas.runCallback();
|
||||
}
|
||||
});
|
||||
}());
|
||||
|
||||
@@ -7327,6 +7327,16 @@ function BatchCommand(text) {
|
||||
}
|
||||
|
||||
this.clear();
|
||||
|
||||
this.ready = function(cb) {
|
||||
this.callback = cb;
|
||||
}
|
||||
|
||||
this.runCallback = function() {
|
||||
if(this.callback) {
|
||||
this.callback();
|
||||
}
|
||||
}
|
||||
|
||||
function getElem(id) {
|
||||
if(svgroot.querySelector) {
|
||||
|
||||
Reference in New Issue
Block a user