Commit graph

68 commits

Author SHA1 Message Date
the-djmaze 9b8778f823 Reduce Knockout.js footprint by using ECMAScript 2020 2022-09-13 23:49:18 +02:00
the-djmaze a566f6ed5a More Optional chaining in Knockout.js 2022-09-13 22:00:31 +02:00
the-djmaze a3a4a057e5 Dropped the knockout.js tasks from compiled code 2022-09-12 22:31:37 +02:00
the-djmaze d1f71508fe Drop Knockout.js loading components asynchronous
https://knockoutjs.com/documentation/component-registration.html#controlling-synchronousasynchronous-loading
2022-09-12 22:31:05 +02:00
the-djmaze ef8b1f40e4 Use JavaScript Optional chaining in vendors/* 2022-09-12 22:07:51 +02:00
djmaze 30e9b89d9b notifySubscribers and equalityComparer are not used outside KnockoutJS 2021-12-31 17:10:40 +01:00
djmaze 679d7356e0 More ko.computed to pureComputed 2021-12-31 17:02:32 +01:00
djmaze ac2238a23f Bugfix: Cannot write a value to a ko.computed unless you specify a 'write' option 2021-12-31 12:28:43 +01:00
djmaze b98762dd68 Replace deprecated String.substr with String.slice 2021-12-08 11:35:41 +01:00
djmaze dfa448c7cc v2.7.3 2021-10-11 14:39:36 +02:00
djmaze 4fff41580e KnockoutJS disposeWhenNodeIsRemoved not used external 2021-10-04 13:47:47 +02:00
djmaze 4a403df168 Cleanup KnockoutJS and use ECMASCRIPT_2018 for its closure compiler 2021-10-01 17:36:21 +02:00
djmaze bcc3dc51ef Speedup KnockoutJS by simplifying components loader system.
Custom loaders are not used, so it is removed
2021-09-29 12:51:51 +02:00
djmaze 4142526ba6 Cleanup KnockoutJS 2021-09-28 14:40:24 +02:00
djmaze 4c7ce61bc0 Added missing pre/post knockout build files 2021-09-28 14:24:28 +02:00
djmaze bf756c9279 Remove unused data from KnockoutJS 2021-09-28 14:03:07 +02:00
djmaze 5cb4d338a1 ko.utils.setTimeout to native setTimeout 2021-09-28 13:45:19 +02:00
djmaze 9014f08f35 ko.utils.registerEventHandler to native addEventListener 2021-09-28 13:38:02 +02:00
djmaze 8babd10f69 We don't use ko.onError so remove it 2021-09-28 13:26:23 +02:00
djmaze 07443407e9 Bugfix: nodes.forEach should be nodesArray.forEach 2021-09-28 13:21:41 +02:00
djmaze 7d97ae3145 Replace ko.utils.stringStartsWith with native String.startsWith 2021-09-28 13:20:54 +02:00
djmaze 244d4c49c5 Remove unused KnockoutJS afterMove 2021-09-27 12:49:40 +02:00
djmaze 5839bcf62d Remove some unused KnockoutJS features 2021-09-13 16:20:29 +02:00
djmaze f09820d0b9 Resolve Knockout/#2560 with
45e86bf034
2021-09-13 15:52:40 +02:00
djmaze 74f74163c6 Bugfix: <!-- ko text: valueAccessor --> failed
https://knockoutjs.com/documentation/text-binding.html#note-3-using-text-without-a-container-element
2021-08-12 12:54:42 +02:00
djmaze 89075b18bf Remove unused KnockoutJS code 2021-08-10 15:16:21 +02:00
djmaze 3a32a09f2a KnockoutJS:
* remove deprecated allBindings as Accessor https://github.com/knockout/knockout/pull/2133
* remove unused event '*Bubble' https://knockoutjs.com/documentation/event-binding.html#note-4-preventing-the-event-from-bubbling
* remove unused 'completeOn' https://knockoutjs.com/documentation/binding-lifecycle-events.html#indicating-that-a-control-flow-binding-completes-asynchronously
2021-08-10 15:00:49 +02:00
djmaze cbecdd93a0 More Knockout code to ES6 2021-07-29 11:43:47 +02:00
djmaze 5213b804d9 Some tiny changes 2021-07-16 16:24:07 +02:00
djmaze c3c1fc2c0e Tiny knockoutjs speedup 2021-04-23 18:16:36 +02:00
djmaze fac36e828b Cleanup Squire and Knockout with help of Chromium Code Coverage
Bugfix: Squire inlineNodeNames the 'I' tag was missing
Improved: Squire style editing
2021-02-23 22:50:48 +01:00
djmaze 75b7176ada Remove knockout evaluatorFunctionTarget
Drop deprecated knockout throttle extender
Added knockout debounce extender
2021-02-10 11:33:36 +01:00
djmaze ebe2c0536f Bugfix: compose mail select contacts for cc/bcc failed
Cleanup: Inputosaurus and Knockout
Change: Knockout domData now uses WeakMap
Replaced: Knockout domManipulation with a documentFragment
2021-02-01 14:34:24 +01:00
djmaze b6f0b634fb Cleanup calls to Knockout observableArray
Improved Knockout observableArray
2021-01-22 12:23:20 +01:00
djmaze fa5476e486 Added support for 'length' property to Knockout observable 2021-01-22 09:46:04 +01:00
djmaze fb680596a6 Fix naming 2020-11-13 00:04:35 +01:00
djmaze bdd68d0d8f improved knockout observableArray with all Array.prototype functions 2020-11-03 15:53:50 +01:00
djmaze 1d57a62ddd Dropped more unused knockoutjs code 2020-10-29 11:15:04 +01:00
djmaze 5a0215987a knockoutjs replaced slow obj.__proto__ with Object.setPrototypeOf() 2020-10-28 20:19:38 +01:00
djmaze d49916731f replaced ko.utils.array* with native 2020-10-28 20:17:45 +01:00
djmaze ff6fb41812 Remove more unused knockout code 2020-10-28 13:58:37 +01:00
djmaze 188a40b196 Basic JSON object properties revival now handled by AbstractModel
This will be better for future use of JSON.stringify() and JSON.parse()
For now the difference between the PHP JSON being PascalCase and the JS object properties being camelCase is handled by AbstractModel
2020-10-20 17:39:00 +02:00
djmaze 36fa52307f Added: knockout.js observable toJSON() 2020-10-20 15:39:14 +02:00
djmaze 1e735bf4a9 Drop unused Knockout functionality
Especially dropped memoization for improved speed.
2020-10-13 14:56:23 +02:00
djmaze e7975d4f82 Bugfix: Knockout 'with:' used on 1 place 2020-10-13 10:15:50 +02:00
djmaze c2a5d0fda5 ko hidden: use html5 hidden attribute
ko visible: rollback to use style.display
2020-10-11 11:59:36 +02:00
the-djmaze 52e6b9b0ed
Knockout visibleHidden to HTML5 2020-10-11 00:27:45 +02:00
djmaze 993d4c31cc Update knockout-latest.debug.js 2020-10-09 12:45:55 +02:00
djmaze 92836117ee Bugfix: put back the knockout bindings if/ifnot as they are in use 2020-10-09 12:44:39 +02:00
djmaze ba7ed497b2 Cleanup JS and better terser compression 2020-10-09 11:58:15 +02:00