Update vendors.

This commit is contained in:
John-David Dalton
2014-11-24 01:12:41 -08:00
parent 0fe8197100
commit 666be21f59
3 changed files with 14 additions and 14 deletions

View File

@@ -1408,9 +1408,14 @@
* @returns {number} Returns `-1` if slower, `1` if faster, and `0` if indeterminate. * @returns {number} Returns `-1` if slower, `1` if faster, and `0` if indeterminate.
*/ */
function compare(other) { function compare(other) {
var bench = this;
// exit early if comparing the same benchmark
if (bench == other) {
return 0;
}
var critical, var critical,
zStat, zStat,
bench = this,
sample1 = bench.stats.sample, sample1 = bench.stats.sample,
sample2 = other.stats.sample, sample2 = other.stats.sample,
size1 = sample1.length, size1 = sample1.length,
@@ -1436,11 +1441,6 @@
function getZ(u) { function getZ(u) {
return (u - ((size1 * size2) / 2)) / sqrt((size1 * size2 * (size1 + size2 + 1)) / 12); 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 // reject the null hyphothesis the two samples come from the
// same population (i.e. have the same median) if... // same population (i.e. have the same median) if...
if (size1 + size2 > 30) { if (size1 + size2 > 30) {
@@ -1471,8 +1471,8 @@
} }
var event, var event,
index = 0, index = 0,
changes = { 'length': 0 }, changes = [],
queue = { 'length': 0 }; queue = [];
// a non-recursive solution to check if properties have changed // a non-recursive solution to check if properties have changed
// http://www.jslab.dk/articles/non.recursive.preorder.traversal.part4 // http://www.jslab.dk/articles/non.recursive.preorder.traversal.part4
@@ -1510,13 +1510,13 @@
} }
// register a changed object // register a changed object
if (changed) { 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 // register a changed primitive
else if (value !== currValue && !(value == null || _.isFunction(value))) { 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 });
} }
}); });
} }

2
vendor/dojo/dojo.js vendored
View File

@@ -346,7 +346,7 @@
req.eval = req.eval =
function(text, hint){ function(text, hint){
return eval_(text + "\r\n////@ sourceURL=" + hint); return eval_(text + "\r\n//# sourceURL=" + hint);
}; };
// //

View File

@@ -1,5 +1,5 @@
/** vim: et:ts=4:sw=4:sts=4 /** 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. * Available via the MIT or new BSD license.
* see: http://github.com/jrburke/requirejs for details * see: http://github.com/jrburke/requirejs for details
*/ */
@@ -12,7 +12,7 @@ var requirejs, require, define;
(function (global) { (function (global) {
var req, s, head, baseElement, dataMain, src, var req, s, head, baseElement, dataMain, src,
interactiveScript, currentlyAddingScript, mainScript, subPath, interactiveScript, currentlyAddingScript, mainScript, subPath,
version = '2.1.14', version = '2.1.15',
commentRegExp = /(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg, commentRegExp = /(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,
cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g, cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,
jsSuffixRegExp = /\.js$/, jsSuffixRegExp = /\.js$/,