Update vendors.

Former-commit-id: cdd10877e964b62eb73747fbaec5f7eda6ace599
This commit is contained in:
John-David Dalton
2012-11-17 23:50:15 -08:00
parent 155f0a9736
commit ca7f36506c
5 changed files with 14 additions and 9 deletions

View File

@@ -3,5 +3,5 @@ node_js:
- 0.6
- 0.8
before_script:
- "curl -H 'Accept: application/vnd.github.v3.raw' https://api.github.com/repos/bestiejs/lodash/git/blobs/aa29a2ecf6f51d4da5a2a418c0d4ea0e368ee80d | tar xvz -C vendor"
- "curl -H 'Accept: application/vnd.github.v3.raw' https://api.github.com/repos/bestiejs/lodash/git/blobs/9869c4443fb22598235d1019fcc8245be41e8889 | tar xvz -C vendor"
- "curl -H 'Accept: application/vnd.github.v3.raw' https://api.github.com/repos/bestiejs/lodash/git/blobs/a2787b470c577cee2404d186c562dd9835f779f5 | tar xvz -C vendor"
- "curl -H 'Accept: application/vnd.github.v3.raw' https://api.github.com/repos/bestiejs/lodash/git/blobs/3390b259e04829538e4d3635d12b317dd6103eca | tar xvz -C vendor"

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env node
;(function () {
;(function() {
'use strict';
/** Load Node modules */
@@ -17,10 +17,10 @@
var vendorPath = path.join(basePath, 'vendor');
/** The Git object ID of `closure-compiler.tar.gz` */
var closureId = 'aa29a2ecf6f51d4da5a2a418c0d4ea0e368ee80d';
var closureId = 'a2787b470c577cee2404d186c562dd9835f779f5';
/** The Git object ID of `uglifyjs.tar.gz` */
var uglifyId = '9869c4443fb22598235d1019fcc8245be41e8889';
var uglifyId = '3390b259e04829538e4d3635d12b317dd6103eca';
/** The media type for raw blob data */
var mediaType = 'application/vnd.github.v3.raw';

View File

@@ -561,7 +561,7 @@
});
});
asyncTest('debug custom', function () {
asyncTest('debug custom', function() {
var start = _.once(QUnit.start);
build(['-d', '-s', 'backbone'], function(source, filePath) {
equal(path.basename(filePath, '.js'), 'lodash.custom');
@@ -577,7 +577,7 @@
});
});
asyncTest('minified custom', function () {
asyncTest('minified custom', function() {
var start = _.once(QUnit.start);
build(['-m', '-s', 'backbone'], function(source, filePath) {
equal(path.basename(filePath, '.js'), 'lodash.custom.min');

View File

@@ -988,8 +988,8 @@
}
};
// Cached regex for cleaning leading hashes and slashes.
var routeStripper = /^[#\/]|\s+$/;
// Cached regex for stripping a leading hash/slash and trailing space.
var routeStripper = /^[#\/]|\s+$/g;
// Cached regex for stripping leading and trailing slashes.
var rootStripper = /^\/+|\/+$/g;

View File

@@ -497,4 +497,9 @@ $(document).ready(function() {
strictEqual(history.getFragment('fragment '), 'fragment');
});
test("#1820 - Leading slash and trailing space.", 1, function() {
var history = new Backbone.History;
strictEqual(history.getFragment('/fragment '), 'fragment');
});
});