Remove access to _style since we're using getters / setters on items directly now for SVGStyles.

This commit is contained in:
Jürg Lehni 2013-06-18 16:58:28 -07:00
parent 6e91d2ac9b
commit 30c96dc9c1

View file

@ -327,7 +327,7 @@ new function() {
function applyOpacity(item, value, name) {
// http://www.w3.org/TR/SVG/painting.html#FillOpacityProperty
// http://www.w3.org/TR/SVG/painting.html#StrokeOpacityProperty
var color = item._style[name === 'fill-opacity' ? 'getFillColor'
var color = item[name === 'fill-opacity' ? 'getFillColor'
: 'getStrokeColor']();
if (color)
color.setAlpha(parseFloat(value));
@ -339,7 +339,7 @@ new function() {
// can affect gradient fills.
var attributes = Base.merge(Base.each(SVGStyles, function(entry) {
this[entry.attribute] = function(item, value, name, node) {
item._style[entry.set](
item[entry.set](
convertValue(value, entry.type, entry.fromSVG));
};
}, {}), {