Skip to content

Commit

Permalink
Кemoved unused variable and jshint error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
GreLI committed Nov 21, 2015
1 parent da442cb commit 1d6343f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/_transforms.js
Expand Up @@ -2,8 +2,7 @@

var regTransformTypes = /matrix|translate|scale|rotate|skewX|skewY/,
regTransformSplit = /\s*(matrix|translate|scale|rotate|skewX|skewY)\s*\(\s*(.+?)\s*\)[\s,]*/,
regNumericValues = /[-+]?(?:\d*\.\d+|\d+\.?)(?:[eE][-+]?\d+)?/g,
regTransformDataSplit = /[\s,]+/;
regNumericValues = /[-+]?(?:\d*\.\d+|\d+\.?)(?:[eE][-+]?\d+)?/g;

/**
* Convert transform string to JS representation.
Expand All @@ -21,6 +20,7 @@ exports.transform2js = function(transformString) {

// split value into ['', 'translate', '10 50', '', 'scale', '2', '', 'rotate', '-45', '']
transformString.split(regTransformSplit).forEach(function(item) {
/*jshint -W084 */
var num;

if (item) {
Expand Down

0 comments on commit 1d6343f

Please sign in to comment.