Skip to content

Commit

Permalink
Фиксы хуков под новый формат toStringValue
Browse files Browse the repository at this point in the history
  • Loading branch information
ColCh committed Jan 19, 2014
1 parent 676bac2 commit 6bf2f94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
};


toStringValueHooks["color"] = function (elem, propertyName, numericValue, vendorizedPropName) {
toStringValueHooks["color"] = function (elem, numericValue) {
var colorFunction = 'rgb';
if (numericValue.length === 4) {
// Последний элемент в массиве - альфа канал
Expand Down Expand Up @@ -289,7 +289,7 @@
return transformData;
};

toStringValueHooks["transform"] = function (elem, propertyName, numericValue, vendorizedPropName) {
toStringValueHooks["transform"] = function (elem, numericValue) {
var currentTransforms = "";

if ( numericValue[TRANSFORMDATA_ROTATE] % 360 !== 0 ) {
Expand Down

0 comments on commit 6bf2f94

Please sign in to comment.