Skip to content

Commit

Permalink
Fixed an issue with camel case functions
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcambose committed Jun 16, 2019
1 parent 4bdeef5 commit a18c4e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/animation/Styler.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ export default class Styler {
* @param {string} unit Property unit
*/
apply (name, value, unit) {
// if the property name is a function but the value (the argument) is not an array
if(functionValuesEnum[name]) this._applyArray(name, [value + unit]);
if (isNumber(value)) this._applyNumber(name, value, unit);
if (isString(value)) this._applyString(name, value);
if (isArray(value)) this._applyArray(name, value);
Expand Down Expand Up @@ -81,6 +83,6 @@ export default class Styler {
}
return e;
});
CssFunc(this.$el, functionName).add(camelToKebabCase(name), value);
CssFunc(this.$el, functionName).add(name, value);
}
}

0 comments on commit a18c4e3

Please sign in to comment.