mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-30 23:15:14 -04:00
Remove babel for now.
This commit is contained in:
parent
51a161eede
commit
10d6d2c3c1
6 changed files with 12 additions and 27 deletions
20
test/vendor/uniq.js
vendored
20
test/vendor/uniq.js
vendored
|
@ -1,12 +1,14 @@
|
|||
/* uniq 0.3.1 - http://larsjung.de/uniq/ */
|
||||
/* uniq 0.4.0 - http://larsjung.de/uniq/ */
|
||||
(function (root, factory) {
|
||||
'use strict';
|
||||
'use strict';
|
||||
|
||||
// istanbul ignore else
|
||||
if (typeof exports === 'object') {
|
||||
module.exports = factory();
|
||||
} else {
|
||||
root.uniq = factory();
|
||||
}
|
||||
|
||||
if (typeof module !== 'undefined') {
|
||||
module.exports = factory();
|
||||
} else {
|
||||
root.uniq = factory();
|
||||
}
|
||||
}(this, function () {
|
||||
'use strict';
|
||||
|
||||
|
@ -19,23 +21,19 @@
|
|||
var counter = 0;
|
||||
|
||||
function id() {
|
||||
|
||||
counter += 1;
|
||||
return PREFIX + (ZERO_PAD + counter).substr(-LENGTH) + SUFFIX;
|
||||
}
|
||||
|
||||
function isId(sequence) {
|
||||
|
||||
return RE_ID.test(sequence);
|
||||
}
|
||||
|
||||
function obj() {
|
||||
|
||||
return {_uniq_id: id()};
|
||||
}
|
||||
|
||||
function path(suffix) {
|
||||
|
||||
return '/_uniq_path/' + id() + (suffix ? suffix : '');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue