Skip to content

Commit a09cf04

Browse files
author
liuhong
committed
fix transform bug
1 parent 40e1e6b commit a09cf04

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

lib/utils.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ var Utils = {
151151
if (element) {
152152
// fix matrix bug
153153
element.matrix = Raphael.matrix();
154+
element.attr("transform", "");
154155

155156
for (var key in props) {
156157
switch (key) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-raphael",
3-
"version": "0.8.0-rc3",
3+
"version": "0.8.0-rc4",
44
"description": "reactify raphael",
55
"main": "./lib",
66
"scripts": {

src/utils.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ var Utils = {
111111
if(element){
112112
// fix matrix bug
113113
element.matrix = Raphael.matrix();
114+
element.attr("transform","");
114115

115116
for(var key in props){
116117
switch(key){

0 commit comments

Comments
 (0)