From f43adb25fa96ce54b5c82b763b7d8e962e443649 Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Wed, 13 Feb 2013 16:37:10 +0000 Subject: [PATCH] code readability/organization: move nsMap_ getter to immediately after it is created. make comment on nsRevMap_ more explicit. git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2378 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/sanitize.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/editor/sanitize.js b/editor/sanitize.js index 6a00d1e7..1df458b1 100644 --- a/editor/sanitize.js +++ b/editor/sanitize.js @@ -38,7 +38,10 @@ nsMap_[se_ns] = 'se'; nsMap_[htmlns] = 'xhtml'; nsMap_[mathns] = 'mathml'; -// map prefixes to namespace URIs +// temporarily expose these +svgedit.sanitize.getNSMap = function() { return nsMap_; } + +// map prefixes to namespace URIs (reverse of nsMap_) var nsRevMap_ = {}; $.each(nsMap_, function(key,value){ nsRevMap_[value] = key; @@ -129,9 +132,6 @@ $.each(svgWhiteList_, function(elt,atts){ svgWhiteListNS_[elt] = attNS; }); -// temporarily expose these -svgedit.sanitize.getNSMap = function() { return nsMap_; } - // Function: svgedit.sanitize.sanitizeSvg // Sanitizes the input node and its children // It only keeps what is allowed from our whitelist defined above