From: Olivier Lamy Date: Fri, 6 Jan 2012 09:22:56 +0000 (+0000) Subject: use knockout v2.1.0pre which has some nice perf improv with compiled binding cache X-Git-Tag: archiva-1.4-M3~1633 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f752ebe0597e3c739a9914ec7567fa97b74546b6;p=archiva.git use knockout v2.1.0pre which has some nice perf improv with compiled binding cache git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1228033 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/knockout-debug.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/knockout-debug.js index 416a6818a..49d2a6384 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/knockout-debug.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/knockout-debug.js @@ -1,13 +1,29 @@ -// Knockout JavaScript library v2.0.0 +// Knockout JavaScript library v2.1.0pre // (c) Steven Sanderson - http://knockoutjs.com/ // License: MIT (http://www.opensource.org/licenses/mit-license.php) -(function(window,undefined){ -var ko = window["ko"] = {}; +(function(window,document,navigator,undefined){ +!function(factory) { + // Support AMD where available and opted in via define.amd.ko + if (typeof define === 'function' && define['amd'] && define['amd']['ko']) { + // Register as an AMD anonymous module + define(['exports'], factory); + } else { + // AMD not in use (e.g., when referenced via aplain