Skip to content

Commit

Permalink
Bugfix. undefined is not a function. New release.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbrand committed Dec 4, 2015
1 parent b04dafe commit ad21a2a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.0.2 (2015-12-04)

- Bugfix. undefined is not a function. [jcbrand]

## 0.0.1 (2015-11-15)

- Add the ability to also use the browser's sessionStorage instead of just localStorage.
Expand Down
2 changes: 1 addition & 1 deletion backbone.browserStorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ var _extension = {
_clear: function() {
var local = this.store, itemRe;

if (this.name.startsWith('+')) {
if (typeof this.name.startsWith === "function" && this.name.startsWith('+')) {
itemRe = new RegExp("^\\" + this.name + "-");
} else {
itemRe = new RegExp("^" + this.name + "-");
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "backbone.browserStorage",
"version": "0.0.1",
"version": "0.0.2",
"main": "./backbone.browserStorage.js",
"dependencies": {}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"author": "JC Brand (https://opkode.com) fork of backbone.localStorage",
"name": "backbone.browserStorage",
"version": "0.0.1",
"version": "0.0.2",
"repository": {
"type": "git",
"url": "git://github.com/jcbrand/Backbone.browserStorage.git"
Expand Down

0 comments on commit ad21a2a

Please sign in to comment.