Skip to content

Commit

Permalink
Fix translate3d util function after transform refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed May 1, 2015
1 parent 82f0a57 commit d15fac2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/standard/utils.html
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@
* Cross-platform helper for setting an element's CSS `transform` property.
*
* @method transform
* @param {HTMLElement} node Element to apply the transform to.
* @param {String} transform Transform setting.
* @param {HTMLElement} node Optional Element to apply the transform to.
*/
transform: function(transform, node) {
node = node || this;
Expand All @@ -219,14 +219,14 @@
* property.
*
* @method translate3d
* @param {HTMLElement} node Element to apply the transform to.
* @param {number} x X offset.
* @param {number} y Y offset.
* @param {number} z Z offset.
* @param {HTMLElement} node Optional Element to apply the transform to.
*/
translate3d: function(x, y, z, node) {
node = node || this;
this.transform(node, 'translate3d(' + x + ',' + y + ',' + z + ')');
this.transform('translate3d(' + x + ',' + y + ',' + z + ')', node);
},

importHref: function(href, onload, onerror) {
Expand Down

0 comments on commit d15fac2

Please sign in to comment.