Skip to content

Commit

Permalink
Fix FF16/IE10 issues (merge from zhenglong, #85).
Browse files Browse the repository at this point in the history
  • Loading branch information
rstacruz committed Dec 13, 2012
2 parents 83a1514 + 5641cad commit 6f6e39f
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions jquery.transit.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
$.cssHooks.transform = {
// The getter returns a `Transform` object.
get: function(elem) {
return $(elem).data('transform');
return $(elem).data('transform') || new Transform();
},

// The setter accepts a `Transform` object or a string.
Expand Down Expand Up @@ -605,20 +605,11 @@
$.cssHooks[prop] = {
get: function(elem) {
var t = $(elem).css('transform');

if (!t || t === "none") {
t = new Transform();
}
return t.get(prop);
},

set: function(elem, value) {
var t = $(elem).css('transform');

if (!t || t === "none") {
t = new Transform();
}

t.setFromString(prop, value);

$(elem).css({ transform: t });
Expand Down

0 comments on commit 6f6e39f

Please sign in to comment.