You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@archiva.apache.org by ol...@apache.org on 2013/06/06 14:09:55 UTC

svn commit: r1490249 - in /archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js: archiva/archiva.js knockout-2.2.0.debug.js knockout-2.2.1.debug.js

Author: olamy
Date: Thu Jun  6 12:09:54 2013
New Revision: 1490249

URL: http://svn.apache.org/r1490249
Log:
knockout 2.2.1

Added:
    archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/knockout-2.2.1.debug.js   (contents, props changed)
      - copied, changed from r1489848, archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/knockout-2.2.0.debug.js
Removed:
    archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/knockout-2.2.0.debug.js
Modified:
    archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/archiva.js

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/archiva.js
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/archiva.js?rev=1490249&r1=1490248&r2=1490249&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/archiva.js (original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/archiva.js Thu Jun  6 12:09:54 2013
@@ -68,7 +68,7 @@ $.ajax({
               "bootstrap": "bootstrap.2.2.2",
               "jquery.validate": "jquery.validate-1.9.0",
               "jquery.json": "jquery.json-2.3.min",
-              "knockout": "knockout-2.2.0.debug",
+              "knockout": "knockout-2.2.1.debug",
               "knockout.simpleGrid": "knockout.simpleGrid",
               "knockout.select2": "knockout.select2",
               "knockout.sortable": "knockout-sortable.0.7.2",

Copied: archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/knockout-2.2.1.debug.js (from r1489848, archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/knockout-2.2.0.debug.js)
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/knockout-2.2.1.debug.js?p2=archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/knockout-2.2.1.debug.js&p1=archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/knockout-2.2.0.debug.js&r1=1489848&r2=1490249&rev=1490249&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/knockout-2.2.0.debug.js (original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/knockout-2.2.1.debug.js Thu Jun  6 12:09:54 2013
@@ -1,4 +1,4 @@
-// Knockout JavaScript library v2.2.0
+// Knockout JavaScript library v2.2.1
 // (c) Steven Sanderson - http://knockoutjs.com/
 // License: MIT (http://www.opensource.org/licenses/mit-license.php)
 
@@ -37,7 +37,7 @@ ko.exportSymbol = function(koPath, objec
 ko.exportProperty = function(owner, publicName, object) {
   owner[publicName] = object;
 };
-ko.version = "2.2.0";
+ko.version = "2.2.1";
 
 ko.exportSymbol('version', ko.version);
 ko.utils = new (function () {
@@ -703,22 +703,28 @@ ko.exportSymbol('utils.domNodeDisposal.r
     }
 
     function jQueryHtmlParse(html) {
-        var elems = jQuery['clean']([html]);
+        // jQuery's "parseHTML" function was introduced in jQuery 1.8.0 and is a documented public API.
+        if (jQuery['parseHTML']) {
+            return jQuery['parseHTML'](html);
+        } else {
+            // For jQuery < 1.8.0, we fall back on the undocumented internal "clean" function.
+            var elems = jQuery['clean']([html]);
 
-        // As of jQuery 1.7.1, jQuery parses the HTML by appending it to some dummy parent nodes held in an in-memory document fragment.
-        // Unfortunately, it never clears the dummy parent nodes from the document fragment, so it leaks memory over time.
-        // Fix this by finding the top-most dummy parent element, and detaching it from its owner fragment.
-        if (elems && elems[0]) {
-            // Find the top-most parent element that's a direct child of a document fragment
-            var elem = elems[0];
-            while (elem.parentNode && elem.parentNode.nodeType !== 11 /* i.e., DocumentFragment */)
-                elem = elem.parentNode;
-            // ... then detach it
-            if (elem.parentNode)
-                elem.parentNode.removeChild(elem);
-        }
+            // As of jQuery 1.7.1, jQuery parses the HTML by appending it to some dummy parent nodes held in an in-memory document fragment.
+            // Unfortunately, it never clears the dummy parent nodes from the document fragment, so it leaks memory over time.
+            // Fix this by finding the top-most dummy parent element, and detaching it from its owner fragment.
+            if (elems && elems[0]) {
+                // Find the top-most parent element that's a direct child of a document fragment
+                var elem = elems[0];
+                while (elem.parentNode && elem.parentNode.nodeType !== 11 /* i.e., DocumentFragment */)
+                    elem = elem.parentNode;
+                // ... then detach it
+                if (elem.parentNode)
+                    elem.parentNode.removeChild(elem);
+            }
 
-        return elems;
+            return elems;
+        }
     }
 
     ko.utils.parseHtmlFragment = function(html) {

Propchange: archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/knockout-2.2.1.debug.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/knockout-2.2.1.debug.js
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision