Fixed issue 456 by adding a svgCanvas.ready() function
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1328 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
fad1c4395d
commit
b4840e8f7f
|
@ -2780,6 +2780,8 @@ function svg_edit_setup() {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
svgCanvas.runCallback();
|
||||
}
|
||||
});
|
||||
}());
|
||||
|
|
|
@ -7328,6 +7328,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) {
|
||||
// querySelector lookup
|
||||
|
|
Loading…
Reference in New Issue