From 7f560c0ed1550197a3b470985de60fd5c7a42a08 Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Wed, 13 Feb 2013 17:21:13 +0000 Subject: [PATCH] minor change so we don't have two variables named "attrName" and "attrname", and make it more explicit that these are style-related attributes. git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2380 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 7d25865e..875ed662 100644 --- a/editor/sanitize.js +++ b/editor/sanitize.js @@ -206,11 +206,11 @@ svgedit.sanitize.sanitizeSvg = function(node) { p = props.length; while(p--) { var nv = props[p].split(":"); - var attrname = $.trim(nv[0]); - var attrval = $.trim(nv[1]); + var styleAttrName = $.trim(nv[0]); + var styleAttrVal = $.trim(nv[1]); // Now check that this attribute is supported - if (allowedAttrs.indexOf(attrname) >= 0) { - node.setAttribute(attrname, attrval); + if (allowedAttrs.indexOf(styleAttrName) >= 0) { + node.setAttribute(styleAttrName, styleAttrVal); } } node.removeAttribute('style');