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
master
Waldir Pimenta 2013-02-13 16:37:10 +00:00
parent 4ddcc94f2f
commit f43adb25fa
1 changed files with 4 additions and 4 deletions

View File

@ -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