# HG changeset patch # User Jaroslav Tulach # Date 1450068742 -3600 # Node ID 86218dd9270ba84c39e32d0b621bc90111e3eb8d # Parent 02568f34628a35c30a1120e7a7a013db794c4c97 #257130: Switching to minified version of knockout.js diff -r 02568f34628a -r 86218dd9270b ko4j/src/main/java/org/netbeans/html/ko4j/Knockout.java --- a/ko4j/src/main/java/org/netbeans/html/ko4j/Knockout.java Sun Dec 13 21:33:32 2015 +0100 +++ b/ko4j/src/main/java/org/netbeans/html/ko4j/Knockout.java Mon Dec 14 05:52:22 2015 +0100 @@ -62,7 +62,7 @@ * * @author Jaroslav Tulach */ -@JavaScriptResource("knockout-3.2.0.debug.js") +@JavaScriptResource("knockout-3.4.0.js") final class Knockout extends WeakReference { private static final ReferenceQueue QUEUE = new ReferenceQueue(); private static final Set active = Collections.synchronizedSet(new HashSet()); diff -r 02568f34628a -r 86218dd9270b ko4j/src/main/resources/org/netbeans/html/ko4j/knockout-3.2.0.debug.js --- a/ko4j/src/main/resources/org/netbeans/html/ko4j/knockout-3.2.0.debug.js Sun Dec 13 21:33:32 2015 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5342 +0,0 @@ -/* - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. - * - * Copyright 2013-2014 Oracle and/or its affiliates. All rights reserved. - * - * Oracle and Java are registered trademarks of Oracle and/or its affiliates. - * Other names may be trademarks of their respective owners. - * - * The contents of this file are subject to the terms of either the GNU - * General Public License Version 2 only ("GPL") or the Common - * Development and Distribution License("CDDL") (collectively, the - * "License"). You may not use this file except in compliance with the - * License. You can obtain a copy of the License at - * http://www.netbeans.org/cddl-gplv2.html - * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the - * specific language governing permissions and limitations under the - * License. When distributing the software, include this License Header - * Notice in each file and include the License file at - * nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this - * particular file as subject to the "Classpath" exception as provided - * by Oracle in the GPL Version 2 section of the License file that - * accompanied this code. If applicable, add the following below the - * License Header, with the fields enclosed by brackets [] replaced by - * your own identifying information: - * "Portions Copyrighted [year] [name of copyright owner]" - * - * Contributor(s): - * - * The Original Software is NetBeans. The Initial Developer of the Original - * Software is Oracle. Portions Copyright 2013-2014 Oracle. All Rights Reserved. - * - * If you wish your version of this file to be governed by only the CDDL - * or only the GPL Version 2, indicate your decision by adding - * "[Contributor] elects to include this software in this distribution - * under the [CDDL or GPL Version 2] license." If you do not indicate a - * single choice of license, a recipient has the option to distribute - * your version of this file under either the CDDL, the GPL Version 2 or - * to extend the choice of license to its licensees as provided above. - * However, if you add GPL Version 2 code and therefore, elected the GPL - * Version 2 license, then the option applies only if the new code is - * made subject to such option by the copyright holder. - */ - -/*! - * Knockout JavaScript library v3.2.0 - * (c) Steven Sanderson - http://knockoutjs.com/ - * License: MIT (http://www.opensource.org/licenses/mit-license.php) - */ - -(function(){ -var DEBUG=false; -(function(undefined){ - // (0, eval)('this') is a robust way of getting a reference to the global object - // For details, see http://stackoverflow.com/questions/14119988/return-this-0-evalthis/14120023#14120023 - var window = this || (0, eval)('this'), - document = window['document'], - navigator = window['navigator'], - jQueryInstance = window["jQuery"], - JSON = window["JSON"]; -(function(factory) { - // Support three module loading scenarios - if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') { - // [1] CommonJS/Node.js - var target = module['exports'] || exports; // module.exports is for Node.js - factory(target, require); - } else if (typeof define === 'function' && define['amd']) { - // [2] AMD anonymous module - define(['exports', 'require'], factory); - } else { - // [3] No module loader (plain