Skip to content

Commit 037bcdd

Browse files
demitriusbelaicrissdev
authored andcommitted
Add support for observable _destroy
Closes #596
1 parent 7ce4541 commit 037bcdd

7 files changed

Lines changed: 7 additions & 7 deletions

dist/knockout.validation-with-locales.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ kv.configuration = configuration;
263263

264264
//get list of values either from array or object but ignore non-objects
265265
// and destroyed objects
266-
if (val && !val._destroy) {
266+
if (val && !unwrap(val._destroy)) {
267267
if (utils.isArray(val)) {
268268
objValues = val;
269269
}

dist/knockout.validation-with-locales.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/knockout.validation-with-locales.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/knockout.validation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ kv.configuration = configuration;
263263

264264
//get list of values either from array or object but ignore non-objects
265265
// and destroyed objects
266-
if (val && !val._destroy) {
266+
if (val && !unwrap(val._destroy)) {
267267
if (utils.isArray(val)) {
268268
objValues = val;
269269
}

dist/knockout.validation.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/knockout.validation.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565

6666
//get list of values either from array or object but ignore non-objects
6767
// and destroyed objects
68-
if (val && !val._destroy) {
68+
if (val && !ko.utils.unwrapObservable(val._destroy)) {
6969
if (utils.isArray(val)) {
7070
objValues = val;
7171
}

0 commit comments

Comments
 (0)