Very minor clean-up
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2668 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
@@ -267,7 +267,7 @@
|
|||||||
Editor.loadFromString(src);
|
Editor.loadFromString(src);
|
||||||
}
|
}
|
||||||
} else if (qstr.indexOf('paramurl=') !== -1) {
|
} else if (qstr.indexOf('paramurl=') !== -1) {
|
||||||
// Get paramater URL (use full length of remaining location.href)
|
// Get parameter URL (use full length of remaining location.href)
|
||||||
svgEditor.loadFromURL(qstr.substr(9));
|
svgEditor.loadFromURL(qstr.substr(9));
|
||||||
} else if (urldata.url) {
|
} else if (urldata.url) {
|
||||||
svgEditor.loadFromURL(urldata.url);
|
svgEditor.loadFromURL(urldata.url);
|
||||||
@@ -4307,7 +4307,7 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// use HTML5 File API: http://www.w3.org/TR/FileAPI/
|
// Use HTML5 File API: http://www.w3.org/TR/FileAPI/
|
||||||
// if browser has HTML5 File API support, then we will show the open menu item
|
// if browser has HTML5 File API support, then we will show the open menu item
|
||||||
// and provide a file input to click. When that change event fires, it will
|
// and provide a file input to click. When that change event fires, it will
|
||||||
// get the text contents of the file and send it to the canvas
|
// get the text contents of the file and send it to the canvas
|
||||||
@@ -4323,8 +4323,8 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (file.type.indexOf('image') != -1) {
|
if (file.type.indexOf('image') != -1) {
|
||||||
//detected an image
|
// Detected an image
|
||||||
//svg handling
|
// svg handling
|
||||||
if (file.type.indexOf('svg') != -1) {
|
if (file.type.indexOf('svg') != -1) {
|
||||||
var reader = new FileReader();
|
var reader = new FileReader();
|
||||||
reader.onloadend = function(e) {
|
reader.onloadend = function(e) {
|
||||||
@@ -4771,7 +4771,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
Editor.loadFromURL = function(url, opts) {
|
Editor.loadFromURL = function(url, opts) {
|
||||||
if (!opts) opts = {};
|
if (!opts) {opts = {};}
|
||||||
|
|
||||||
var cache = opts.cache;
|
var cache = opts.cache;
|
||||||
var cb = opts.callback;
|
var cb = opts.callback;
|
||||||
|
|||||||
Reference in New Issue
Block a user