Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

#395 Fix typo in setDefaults that forces defaults

  • Loading branch information...
commit 9cf69ff80d9b701eb5224845a97db75dfe84eaa8 1 parent eb25c3a
@stegrams stegrams authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/lib/base.coffee
View
4 src/lib/base.coffee
@@ -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}
Please sign in to comment.
Something went wrong with that request. Please try again.