Comparing version 0.8.2 to 0.8.3
{ | ||
"name": "sajari", | ||
"version": "0.8.2", | ||
"version": "0.8.3", | ||
"description": "JavaScript SDK for access to the Sajari search API", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -14,2 +14,5 @@ var isArray = require('./utils/isArray'); | ||
} | ||
if (this.options.attrs === undefined) { | ||
this.options.attrs = {}; | ||
} | ||
if (this.id === undefined) { | ||
@@ -304,6 +307,3 @@ this.id = stringGen(16); | ||
attr: function(key, value) { | ||
if (this.options.attrs === undefined) { | ||
this.options.attrs = {}; | ||
} | ||
if (key !== undefined && key != "" && value !== undefined) { | ||
if (key !== undefined && key !== "" && value !== undefined) { | ||
this.options.attrs[key] = value; | ||
@@ -321,7 +321,4 @@ } | ||
} | ||
if (this.options.attrs === undefined) { | ||
this.options.attrs = {}; | ||
} | ||
for (var key in data) { | ||
if (key !== undefined && key != "" && data[key] !== undefined) { | ||
if (key !== undefined && key !== "" && data[key] !== undefined) { | ||
this.options.attrs[key] = data[key]; | ||
@@ -328,0 +325,0 @@ } |
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
37392
1056