diff options
author | German M. Bravo <german.mb@deipi.com> | 2013-08-13 18:00:33 -0500 |
---|---|---|
committer | German M. Bravo <german.mb@deipi.com> | 2013-08-13 18:00:33 -0500 |
commit | c68e808c0b16f92029318c144f3fd02278a5fc5c (patch) | |
tree | 9b1bb6bee75acada2126425bb017276a3a9ad6e1 | |
parent | 8024c33abb33831fc8c1ef08af8b6e01703a5097 (diff) | |
download | pyscss-c68e808c0b16f92029318c144f3fd02278a5fc5c.tar.gz |
Updated units check
-rw-r--r-- | scss/functions/compass/sprites.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scss/functions/compass/sprites.py b/scss/functions/compass/sprites.py index bcbc3d5..5997b54 100644 --- a/scss/functions/compass/sprites.py +++ b/scss/functions/compass/sprites.py @@ -184,7 +184,7 @@ def sprite_map(g, **kwargs): position = kwargs.get('position', 0) position = NumberValue(position) - if position.units.get('_') != '%' and position.value > 1: + if position.unit != '%' and position.value > 1: position = position.value / 100.0 else: position = position.value @@ -230,7 +230,7 @@ def sprite_map(g, **kwargs): _position = position else: _position = NumberValue(_position) - if _position.units.get('_') != '%' and _position.value > 1: + if _position.unit != '%' and _position.value > 1: _position = _position.value / 100.0 else: _position = _position.value |