We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f9e83e commit f85cf7dCopy full SHA for f85cf7d
knockout.mapping.js
@@ -79,7 +79,6 @@
79
exports.fromJS = function (jsObject /*, inputOptions, target*/ ) {
80
if (arguments.length == 0) throw new Error("When calling ko.fromJS, pass the object you want to convert.");
81
82
- // When mapping is completed, even with an exception, reset the nesting level
83
try {
84
if (!mappingNesting++) {
85
dependentObservables = [];
@@ -124,8 +123,9 @@
124
123
result[mappingProperty] = merge(result[mappingProperty], options);
125
126
return result;
127
- } finally {
+ } catch(e) {
128
mappingNesting = 0;
+ throw e;
129
}
130
};
131
0 commit comments