Skip to content

Commit

Permalink
updates for 0.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
delambo committed Dec 20, 2012
1 parent 8af9664 commit eceb0b6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[**Documentation for current/stable release: 0.6.0**](http://nytimes.github.com/backbone.stickit/)
[-> **Documentation for current/stable release: 0.6.1**](http://nytimes.github.com/backbone.stickit/)

**The following is documentation for the code in master/edge version...**

Expand Down
22 changes: 12 additions & 10 deletions backbone.stickit.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@
// property `name`, to an `observe`d model attribute, using an optional
// `onGet` formatter.
//
// [{
// name: 'attributeOrPropertyName',
// observe: 'modelAttrName'
// onGet: function(modelAttrVal, modelAttrName) { ... }
// }, ...]
// [{
// name: 'attributeOrPropertyName',
// observe: 'modelAttrName'
// onGet: function(modelAttrVal, modelAttrName) { ... }
// }, ...]
//
_.each(config.attributes || [], function(attrConfig) {
var lastClass = '',
Expand Down Expand Up @@ -295,11 +295,13 @@
} else {
// If the optList is an object, then it should be used to define an optgroup. An
// optgroup object configuration looks like the following:
// {
// 'opt_labels': ['Looney Tunes', 'Three Stooges'],
// 'Looney Tunes': [{id: 1, name: 'Bugs Bunny'}, {id: 2, name: 'Donald Duck'}],
// 'Three Stooges': [{id: 3, name : 'moe'}, {id: 4, name : 'larry'}, {id: 5, name : 'curly'}]
// }
//
// {
// 'opt_labels': ['Looney Tunes', 'Three Stooges'],
// 'Looney Tunes': [{id: 1, name: 'Bugs Bunny'}, {id: 2, name: 'Donald Duck'}],
// 'Three Stooges': [{id: 3, name : 'moe'}, {id: 4, name : 'larry'}, {id: 5, name : 'curly'}]
// }
//
_.each(optList.opt_labels, function(label) {
var $group = $('<optgroup/>').attr('label', label);
addSelectOptions(optList[label], $group, selectConfig, val, isMultiple);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

"description": "Model binding in Backbone style.",

"version": "0.6.0",
"version": "0.6.1",

"author": "Matthew DeLambo <[email protected]>",

Expand Down

0 comments on commit eceb0b6

Please sign in to comment.