Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

#395 Fix typo in setDefaults that forces defaults #396

Merged
merged 1 commit into from

2 participants

@stegrams

No description provided.

@balupton balupton merged commit 3095ad4 into docpad:master
@balupton
Owner

Fixed in the just published v6.21.2. Thanks!

@balupton balupton referenced this pull request from a commit
@balupton balupton v6.21.2. Bugfix.
- v6.21.2 January 8, 2013
	- Fixed `Base::setDefaults` and `File::setMetaDefaults` always forcing
defaults
		- Thanks to [Stefan](https://github.com/stegrams) for [pull request
#396](#396)
fedd717
@stegrams stegrams deleted the stegrams:patch-1 branch
@balupton balupton referenced this pull request from a commit
@balupton balupton v6.21.2. Bugfix.
- v6.21.2 January 8, 2013
	- Fixed `Base::setDefaults` and `File::setMetaDefaults` always forcing
defaults
		- Thanks to [Stefan](https://github.com/stegrams) for [pull request
#396](#396)
3909f29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 7, 2013
  1. @stegrams
This page is out of date. Refresh to see the latest.
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}
Something went wrong with that request. Please try again.