Comparing version 1.0.1 to 1.0.2
@@ -145,6 +145,6 @@ 'use strict'; | ||
*/ | ||
getSynonyms: function(name, transforations) { | ||
getSynonyms: function(name, transformations) { | ||
var synonyms = []; | ||
if (typeof name === 'string' && name) { | ||
(transforations || this.transformations).forEach(function(key) { | ||
(transformations || this.transformations).forEach(function(key) { | ||
if (typeof this[key] !== 'function') { | ||
@@ -187,4 +187,4 @@ throw new ReferenceError('Unknown transformer "' + key + '"'); | ||
// promote args | ||
list = elements = index; | ||
propName = list; | ||
list = elements = arguments[0]; | ||
propName = arguments[1]; | ||
} | ||
@@ -191,0 +191,0 @@ propName = propName || this.propName; |
{ | ||
"name": "synonomous", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Transform strings into synonyms for list decoration", | ||
@@ -13,3 +13,6 @@ "main": "index.js", | ||
}, | ||
"author": "Jonathan Eiten <jonathan.eiten@mojotouch.com>", | ||
"author": { | ||
"name": "Jonathan Eiten", | ||
"email": "jonathan.eiten@mojotouch.com" | ||
}, | ||
"license": "MIT", | ||
@@ -16,0 +19,0 @@ "bugs": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14588