Skip to content

Commit d76a336

Browse files
committed
Updating version and README
1 parent 1b949ca commit d76a336

6 files changed

+17
-9
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -938,6 +938,14 @@ Basic behaviour:
938938

939939
## Release notes
940940

941+
#### v0.11.5 [commits](https://github.com/thedersen/backbone.validation/compare/v0.11.4...v0.11.5)
942+
943+
* Check for no associatedViews in unbindModel().
944+
945+
#### v0.11.4 [commits](https://github.com/thedersen/backbone.validation/compare/v0.11.3...v0.11.4)
946+
947+
* Support arrays in the attributes.
948+
941949
#### v0.11.3 [commits](https://github.com/thedersen/backbone.validation/compare/v0.11.2...v0.11.3)
942950

943951
* Upgrading version in source file. Fixes #274.

dist/backbone-validation-amd-min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/backbone-validation-amd.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Backbone.Validation v0.11.4
1+
// Backbone.Validation v0.11.5
22
//
33
// Copyright (c) 2011-2015 Thomas Pedersen
44
// Distributed under MIT License
@@ -344,7 +344,7 @@
344344
// Removes view from associated views of the model or the methods
345345
// added to a model if no view or single view provided
346346
var unbindModel = function(model, view) {
347-
if (view && model.associatedViews.length > 1){
347+
if (view && model.associatedViews && model.associatedViews.length > 1){
348348
model.associatedViews = _.without(model.associatedViews, view);
349349
} else {
350350
delete model.validate;

0 commit comments

Comments
 (0)