Fixed issue 678 - opensave extension broken

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1731 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Alexis Deveria 2010-09-20 12:49:36 +00:00
parent 99fb199663
commit b1268c527d
1 changed files with 8 additions and 5 deletions

View File

@ -227,9 +227,9 @@
}
// Load extensions
// Bit of a hack to run extensions in local Opera
if(window.opera && document.location.protocol === 'file:') {
setTimeout(extFunc, 1000);
// Bit of a hack to run extensions in local Opera/IE9
if(document.location.protocol === 'file:') {
setTimeout(extFunc, 100);
} else {
extFunc();
}
@ -4144,8 +4144,11 @@
Editor.addExtension = function() {
var args = arguments;
Editor.ready(function() {
svgCanvas.addExtension.apply(this, args);
// Note that we don't want this on Editor.ready since some extensions
// may want to run before then (like server_opensave).
$(function() {
if(svgCanvas) svgCanvas.addExtension.apply(this, args);
});
};