Skip to content

Commit

Permalink
Merge pull request #17 from eiriksm/bug/oject-keys-on-undefiend-dict
Browse files Browse the repository at this point in the history
Make sure dict is defined.
  • Loading branch information
nylen committed Jan 12, 2015
2 parents dd8b4cc + 1091620 commit 3ddc99a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
@@ -1,5 +1,5 @@
function Caseless (dict) {
this.dict = dict
this.dict = dict || {}
}
Caseless.prototype.set = function (name, value, clobber) {
if (typeof name === 'object') {
Expand Down

0 comments on commit 3ddc99a

Please sign in to comment.