From bc3f7923e01c49d2499e331fb85dd14a99a83ed4 Mon Sep 17 00:00:00 2001 From: Brett Zamir Date: Tue, 4 Feb 2014 04:08:24 +0000 Subject: [PATCH] Very minor clean-up git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2668 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svg-editor.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/editor/svg-editor.js b/editor/svg-editor.js index 213ff863..5cab05f2 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -267,7 +267,7 @@ Editor.loadFromString(src); } } 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)); } else if (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 // 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 @@ -4323,8 +4323,8 @@ return; } if (file.type.indexOf('image') != -1) { - //detected an image - //svg handling + // Detected an image + // svg handling if (file.type.indexOf('svg') != -1) { var reader = new FileReader(); reader.onloadend = function(e) { @@ -4771,7 +4771,7 @@ }; Editor.loadFromURL = function(url, opts) { - if (!opts) opts = {}; + if (!opts) {opts = {};} var cache = opts.cache; var cb = opts.callback;