Comparing version 2.1.0 to 2.1.1
12
index.js
@@ -27,6 +27,8 @@ 'use strict'; | ||
var part = '' + minEscape(key); | ||
if (val !== undefined && val !== '') { | ||
if (val === undefined) { | ||
continue; | ||
} | ||
if (val !== '') { | ||
part += '=' + minEscape(val); | ||
} | ||
parts.push(part); | ||
@@ -44,3 +46,6 @@ } | ||
var part = '' + escape(key); | ||
if (val !== undefined && val !== '') { | ||
if (val === undefined) { | ||
continue; | ||
} | ||
if (val !== '') { | ||
part += '=' + escape(val); | ||
@@ -72,2 +77,3 @@ } | ||
this.load(); | ||
this.save(); | ||
@@ -74,0 +80,0 @@ function onHashChange(e) { |
{ | ||
"name": "hashbind", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Dual Binding Library For window.location.hash", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
10360
327