From f752ebe0597e3c739a9914ec7567fa97b74546b6 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Fri, 6 Jan 2012 09:22:56 +0000 Subject: [PATCH] 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 --- .../src/main/webapp/js/knockout-debug.js | 224 ++++++++++-------- 1 file changed, 129 insertions(+), 95 deletions(-) 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