1
0
Fork 0

Phi: upgrade to knockout 3.4.0

Using new knockout feature "deferred updates" saves us many redundant UI updates
This commit is contained in:
Torsten Dreyer 2016-06-01 11:28:26 +02:00
parent 4833e9f27a
commit 6099592a98

View file

@ -3,7 +3,7 @@ require.config({
paths : {
jquery : '3rdparty/jquery/jquery-1.11.2.min',
'jquery-ui' : '3rdparty/jquery/ui',
knockout : '3rdparty/knockout/knockout-3.2.0',
knockout : '3rdparty/knockout/knockout-3.4.0',
kojqui : '3rdparty/knockout-jqueryui',
sprintf : '3rdparty/sprintf/sprintf.min',
leaflet : '3rdparty/leaflet-0.7.7/leaflet',
@ -29,6 +29,9 @@ require([
'jquery-ui/sortable', 'flot', 'leaflet', 'knockprops'
], function(ko, jquery, Sammy, fgcommand) {
ko.options.deferUpdates = true;
ko.utils.knockprops.setAliases({
// time