mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 18:17:48 +00:00
Update vendors.
Former-commit-id: cdd10877e964b62eb73747fbaec5f7eda6ace599
This commit is contained in:
@@ -3,5 +3,5 @@ node_js:
|
|||||||
- 0.6
|
- 0.6
|
||||||
- 0.8
|
- 0.8
|
||||||
before_script:
|
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/a2787b470c577cee2404d186c562dd9835f779f5 | 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/3390b259e04829538e4d3635d12b317dd6103eca | tar xvz -C vendor"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
;(function () {
|
;(function() {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/** Load Node modules */
|
/** Load Node modules */
|
||||||
@@ -17,10 +17,10 @@
|
|||||||
var vendorPath = path.join(basePath, 'vendor');
|
var vendorPath = path.join(basePath, 'vendor');
|
||||||
|
|
||||||
/** The Git object ID of `closure-compiler.tar.gz` */
|
/** The Git object ID of `closure-compiler.tar.gz` */
|
||||||
var closureId = 'aa29a2ecf6f51d4da5a2a418c0d4ea0e368ee80d';
|
var closureId = 'a2787b470c577cee2404d186c562dd9835f779f5';
|
||||||
|
|
||||||
/** The Git object ID of `uglifyjs.tar.gz` */
|
/** The Git object ID of `uglifyjs.tar.gz` */
|
||||||
var uglifyId = '9869c4443fb22598235d1019fcc8245be41e8889';
|
var uglifyId = '3390b259e04829538e4d3635d12b317dd6103eca';
|
||||||
|
|
||||||
/** The media type for raw blob data */
|
/** The media type for raw blob data */
|
||||||
var mediaType = 'application/vnd.github.v3.raw';
|
var mediaType = 'application/vnd.github.v3.raw';
|
||||||
|
|||||||
@@ -561,7 +561,7 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
asyncTest('debug custom', function () {
|
asyncTest('debug custom', function() {
|
||||||
var start = _.once(QUnit.start);
|
var start = _.once(QUnit.start);
|
||||||
build(['-d', '-s', 'backbone'], function(source, filePath) {
|
build(['-d', '-s', 'backbone'], function(source, filePath) {
|
||||||
equal(path.basename(filePath, '.js'), 'lodash.custom');
|
equal(path.basename(filePath, '.js'), 'lodash.custom');
|
||||||
@@ -577,7 +577,7 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
asyncTest('minified custom', function () {
|
asyncTest('minified custom', function() {
|
||||||
var start = _.once(QUnit.start);
|
var start = _.once(QUnit.start);
|
||||||
build(['-m', '-s', 'backbone'], function(source, filePath) {
|
build(['-m', '-s', 'backbone'], function(source, filePath) {
|
||||||
equal(path.basename(filePath, '.js'), 'lodash.custom.min');
|
equal(path.basename(filePath, '.js'), 'lodash.custom.min');
|
||||||
|
|||||||
4
vendor/backbone/backbone.js
vendored
4
vendor/backbone/backbone.js
vendored
@@ -988,8 +988,8 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// Cached regex for cleaning leading hashes and slashes.
|
// Cached regex for stripping a leading hash/slash and trailing space.
|
||||||
var routeStripper = /^[#\/]|\s+$/;
|
var routeStripper = /^[#\/]|\s+$/g;
|
||||||
|
|
||||||
// Cached regex for stripping leading and trailing slashes.
|
// Cached regex for stripping leading and trailing slashes.
|
||||||
var rootStripper = /^\/+|\/+$/g;
|
var rootStripper = /^\/+|\/+$/g;
|
||||||
|
|||||||
5
vendor/backbone/test/router.js
vendored
5
vendor/backbone/test/router.js
vendored
@@ -497,4 +497,9 @@ $(document).ready(function() {
|
|||||||
strictEqual(history.getFragment('fragment '), 'fragment');
|
strictEqual(history.getFragment('fragment '), 'fragment');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test("#1820 - Leading slash and trailing space.", 1, function() {
|
||||||
|
var history = new Backbone.History;
|
||||||
|
strictEqual(history.getFragment('/fragment '), 'fragment');
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user