Skip to content

Commit

Permalink
1.4.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
bago committed Jun 15, 2020
1 parent 459d872 commit 043b5aa
Show file tree
Hide file tree
Showing 4 changed files with 666 additions and 565 deletions.
7 changes: 5 additions & 2 deletions dist/ko-reactor.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! ko-reactor v1.4.1
/*! ko-reactor v1.4.2
* The MIT License (MIT)
* Copyright (c) 2018 Ziad Jeeroburkhan */
// Deep observer plugin for Knockout http://knockoutjs.com/
Expand Down Expand Up @@ -204,6 +204,8 @@ ko['watch'] = function (target, options, evaluatorCallback, context) {
// or the F, H or M fields when minified depending on the version used.
// NOTE: we used to use ko.DEBUG to detect the debug versionbut it was removed in 3.4.0+,
// so we now check the existence of a "subscription" function.
// An easy way to identify the right name is to search for "{change:" in the minified
// code and look at the property name assigned.
var subscriptionsField;
switch (typeof ko.subscription == 'function' || ko.version) {
case true: subscriptionsField = '_subscriptions'; break;
Expand All @@ -215,7 +217,8 @@ ko['watch'] = function (target, options, evaluatorCallback, context) {
case "3.4.1": subscriptionsField = 'K'; break;
case "3.4.2": subscriptionsField = 'F'; break;
case "3.5.0": subscriptionsField = 'S'; break;
default: throw "Unsupported Knockout version. Only v3.0.0 to v3.5.0 finals are supported when minified. Current version is " + ko.version;
case "3.5.1": subscriptionsField = 'U'; break;
default: throw "Unsupported Knockout version. Only v3.0.0 to v3.5.1 finals are supported when minified. Current version is " + ko.version;
}

function disposeWatcher(child) {
Expand Down
4 changes: 2 additions & 2 deletions dist/ko-reactor.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 043b5aa

Please sign in to comment.