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-75d572ba1dddmaster
parent
4ddcc94f2f
commit
f43adb25fa
|
@ -38,7 +38,10 @@ nsMap_[se_ns] = 'se';
|
||||||
nsMap_[htmlns] = 'xhtml';
|
nsMap_[htmlns] = 'xhtml';
|
||||||
nsMap_[mathns] = 'mathml';
|
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_ = {};
|
var nsRevMap_ = {};
|
||||||
$.each(nsMap_, function(key,value){
|
$.each(nsMap_, function(key,value){
|
||||||
nsRevMap_[value] = key;
|
nsRevMap_[value] = key;
|
||||||
|
@ -129,9 +132,6 @@ $.each(svgWhiteList_, function(elt,atts){
|
||||||
svgWhiteListNS_[elt] = attNS;
|
svgWhiteListNS_[elt] = attNS;
|
||||||
});
|
});
|
||||||
|
|
||||||
// temporarily expose these
|
|
||||||
svgedit.sanitize.getNSMap = function() { return nsMap_; }
|
|
||||||
|
|
||||||
// Function: svgedit.sanitize.sanitizeSvg
|
// Function: svgedit.sanitize.sanitizeSvg
|
||||||
// Sanitizes the input node and its children
|
// Sanitizes the input node and its children
|
||||||
// It only keeps what is allowed from our whitelist defined above
|
// It only keeps what is allowed from our whitelist defined above
|
||||||
|
|
Loading…
Reference in New Issue