From 6bd6d0746e6d917c4d428fac06cd6395cddbec20 Mon Sep 17 00:00:00 2001 From: Alexis Deveria Date: Tue, 25 Aug 2009 18:22:43 +0000 Subject: [PATCH] Fixed comment in FF/Opera hander files, fixed bugs for Firefox extension git-svn-id: http://svg-edit.googlecode.com/svn/trunk@469 eee81c28-f429-11dd-99c0-75d572ba1ddd --- firefox-extension/handlers.js | 6 +++--- opera-widget/handlers.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/firefox-extension/handlers.js b/firefox-extension/handlers.js index e0c29fdc..af9b36f9 100644 --- a/firefox-extension/handlers.js +++ b/firefox-extension/handlers.js @@ -1,4 +1,4 @@ -// Note: This JavaScript file must be included as the last script on the main HTML editor page to override the open/close handlers +// Note: This JavaScript file must be included as the last script on the main HTML editor page to override the open/save handlers $(function() { if(!window.Components) return; @@ -27,13 +27,13 @@ $(function() { inputStream.init(file, 0x01, 00004, null); var sInputStream = Components.classes["@mozilla.org/scriptableinputstream;1"].createInstance(Components.interfaces.nsIScriptableInputStream); sInputStream.init(inputStream); - canvas.setSvgString(sInputStream. + svgCanvas.setSvgString(sInputStream. read(sInputStream.available())); } catch(e) { console.log("Exception while attempting to load" + e); } }, - 'save':function(svg) { + 'save':function(svg, str) { try { var file = moz_file_picker(false); if(!file) diff --git a/opera-widget/handlers.js b/opera-widget/handlers.js index d4364a87..b0e2ed1a 100644 --- a/opera-widget/handlers.js +++ b/opera-widget/handlers.js @@ -1,4 +1,4 @@ -// Note: This JavaScript file must be included as the last script on the main HTML editor page to override the open/close handlers +// Note: This JavaScript file must be included as the last script on the main HTML editor page to override the open/save handlers $(function() { if(window.opera && window.opera.io && window.opera.io.filesystem) { svgCanvas.setCustomHandlers({