Skip to content

Commit

Permalink
(#1698) - Fix minor typos
Browse files Browse the repository at this point in the history
  • Loading branch information
adamshih authored and daleharvey committed Mar 20, 2014
1 parent a918ebd commit 8ef8062
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/constructor.js
Expand Up @@ -144,13 +144,13 @@ function PouchDB(name, opts, callback) {
}
return;
}
function destructionListner(event) {
function destructionListener(event) {
if (event === 'destroyed') {
self.emit('destroyed');
PouchDB.removeListener(opts.name, destructionListner);
PouchDB.removeListener(opts.name, destructionListener);
}
}
PouchDB.on(opts.name, destructionListner);
PouchDB.on(opts.name, destructionListener);
self.emit('created', self);
PouchDB.emit('created', opts.originalName);
self.taskqueue.ready(self);
Expand Down
2 changes: 1 addition & 1 deletion lib/setup.js
Expand Up @@ -39,7 +39,7 @@ PouchDB.parseAdapter = function (name, opts) {
return {name: name, adapter: match[1]};
}

// check for browers that have been upgraded from websql-only to websql+idb
// check for browsers that have been upgraded from websql-only to websql+idb
var skipIdb = 'idb' in PouchDB.adapters && 'websql' in PouchDB.adapters &&
utils.hasLocalStorage() &&
global.localStorage['_pouch__websqldb_' + PouchDB.prefix + name];
Expand Down

0 comments on commit 8ef8062

Please sign in to comment.