Permalink
Browse files

#395 Fix typo in setDefaults that forces defaults

  • Loading branch information...
1 parent eb25c3a commit 9cf69ff80d9b701eb5224845a97db75dfe84eaa8 @stegrams stegrams committed Jan 7, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/lib/base.coffee
View
@@ -25,7 +25,7 @@ class Model extends Backbone.Model
setDefaults: (defaults) ->
set = {}
for own key,value of defaults
- set[key] = value if @get('key') is @defaults?[key]
+ set[key] = value if @get(key) is @defaults?[key]
@set(set)
return @
@@ -46,4 +46,4 @@ class QueryCollection extends queryEngine.QueryCollection
Collection: QueryCollection
# Export our base models
-module.exports = {queryEngine,Backbone,Events,Model,Collection,View,QueryCollection}
+module.exports = {queryEngine,Backbone,Events,Model,Collection,View,QueryCollection}

0 comments on commit 9cf69ff

Please sign in to comment.