From 666be21f593e34ee59f7d0a309fe3ae05c8532ce Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Mon, 24 Nov 2014 01:12:41 -0800 Subject: [PATCH] Update vendors. --- vendor/benchmark.js/benchmark.js | 22 +++++++++++----------- vendor/dojo/dojo.js | 2 +- vendor/requirejs/require.js | 4 ++-- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/vendor/benchmark.js/benchmark.js b/vendor/benchmark.js/benchmark.js index b5c6ab129..adbc2d8a1 100644 --- a/vendor/benchmark.js/benchmark.js +++ b/vendor/benchmark.js/benchmark.js @@ -1408,9 +1408,14 @@ * @returns {number} Returns `-1` if slower, `1` if faster, and `0` if indeterminate. */ function compare(other) { + var bench = this; + + // exit early if comparing the same benchmark + if (bench == other) { + return 0; + } var critical, zStat, - bench = this, sample1 = bench.stats.sample, sample2 = other.stats.sample, size1 = sample1.length, @@ -1436,11 +1441,6 @@ function getZ(u) { return (u - ((size1 * size2) / 2)) / sqrt((size1 * size2 * (size1 + size2 + 1)) / 12); } - - // exit early if comparing the same benchmark - if (bench == other) { - return 0; - } // reject the null hyphothesis the two samples come from the // same population (i.e. have the same median) if... if (size1 + size2 > 30) { @@ -1471,8 +1471,8 @@ } var event, index = 0, - changes = { 'length': 0 }, - queue = { 'length': 0 }; + changes = [], + queue = []; // a non-recursive solution to check if properties have changed // http://www.jslab.dk/articles/non.recursive.preorder.traversal.part4 @@ -1510,13 +1510,13 @@ } // register a changed object if (changed) { - changes[changes.length++] = { 'destination': destination, 'key': key, 'value': currValue }; + changes.push({ 'destination': destination, 'key': key, 'value': currValue }); } - queue[queue.length++] = { 'destination': currValue, 'source': value }; + queue.push({ 'destination': currValue, 'source': value }); } // register a changed primitive else if (value !== currValue && !(value == null || _.isFunction(value))) { - changes[changes.length++] = { 'destination': destination, 'key': key, 'value': value }; + changes.push({ 'destination': destination, 'key': key, 'value': value }); } }); } diff --git a/vendor/dojo/dojo.js b/vendor/dojo/dojo.js index 46184947c..a5803b732 100644 --- a/vendor/dojo/dojo.js +++ b/vendor/dojo/dojo.js @@ -346,7 +346,7 @@ req.eval = function(text, hint){ - return eval_(text + "\r\n////@ sourceURL=" + hint); + return eval_(text + "\r\n//# sourceURL=" + hint); }; // diff --git a/vendor/requirejs/require.js b/vendor/requirejs/require.js index 7f31fa204..77a5bb1d3 100644 --- a/vendor/requirejs/require.js +++ b/vendor/requirejs/require.js @@ -1,5 +1,5 @@ /** vim: et:ts=4:sw=4:sts=4 - * @license RequireJS 2.1.14 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved. + * @license RequireJS 2.1.15 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved. * Available via the MIT or new BSD license. * see: http://github.com/jrburke/requirejs for details */ @@ -12,7 +12,7 @@ var requirejs, require, define; (function (global) { var req, s, head, baseElement, dataMain, src, interactiveScript, currentlyAddingScript, mainScript, subPath, - version = '2.1.14', + version = '2.1.15', commentRegExp = /(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg, cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g, jsSuffixRegExp = /\.js$/,