diff --git a/vendors/knockout/Gruntfile.js b/vendors/knockout/Gruntfile.js index 92f1cb663..53c8b77da 100644 --- a/vendors/knockout/Gruntfile.js +++ b/vendors/knockout/Gruntfile.js @@ -83,9 +83,7 @@ module.exports = function(grunt) { var fragments = grunt.config('fragments'), sourceFilenames = [ fragments + 'extern-pre.js', - fragments + 'amd-pre.js', getReferencedSources(fragments + 'source-references.js'), - fragments + 'amd-post.js', fragments + 'extern-post.js' ], flattenedSourceFilenames = Array.prototype.concat.apply([], sourceFilenames), @@ -109,10 +107,10 @@ module.exports = function(grunt) { function buildMin(output, done) { var cc = require('closure-compiler'); var options = { - language_in:'ECMASCRIPT6', // BROKEN!! + language_in:'ECMASCRIPT6', language_out:'ECMASCRIPT6', compilation_level: 'ADVANCED_OPTIMIZATIONS', - output_wrapper: '(function() {%output%})();' + output_wrapper: '(()=>{%output%})();' }; grunt.log.write('Compiling...'); cc.compile('/**@const*/var DEBUG=false;' + getCombinedSources(), options, function (err, stdout, stderr) { diff --git a/vendors/knockout/build/output/knockout-latest.debug.js b/vendors/knockout/build/output/knockout-latest.debug.js index 73f985f93..712e4a9a4 100644 --- a/vendors/knockout/build/output/knockout-latest.debug.js +++ b/vendors/knockout/build/output/knockout-latest.debug.js @@ -6,31 +6,13 @@ (function(){ var DEBUG=true; -(function(undefined){ +(window => { // (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'], + var document = window['document'], navigator = window['navigator'], - jQueryInstance = window["jQuery"], - JSON = window["JSON"]; - - if (!jQueryInstance && typeof jQuery !== "undefined") { - jQueryInstance = jQuery; - } -(function(factory) { - // Support three module loading scenarios - if (typeof define === 'function' && define['amd']) { - // [1] AMD anonymous module - define(['exports', 'require'], factory); - } else if (typeof exports === 'object' && typeof module === 'object') { - // [2] CommonJS/Node.js - factory(module['exports'] || exports); // module.exports is for Node.js - } else { - // [3] No module loader (plain