stuff
This commit is contained in:
parent
bc92231240
commit
b8225c639e
11904 changed files with 1472749 additions and 133 deletions
31
node_modules/mathjax-full/js/output/chtml/Usage.js
generated
vendored
Normal file
31
node_modules/mathjax-full/js/output/chtml/Usage.js
generated
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.Usage = void 0;
|
||||
var Usage = (function () {
|
||||
function Usage() {
|
||||
this.used = new Set();
|
||||
this.needsUpdate = [];
|
||||
}
|
||||
Usage.prototype.add = function (item) {
|
||||
var name = JSON.stringify(item);
|
||||
if (!this.used.has(name)) {
|
||||
this.needsUpdate.push(item);
|
||||
}
|
||||
this.used.add(name);
|
||||
};
|
||||
Usage.prototype.has = function (item) {
|
||||
return this.used.has(JSON.stringify(item));
|
||||
};
|
||||
Usage.prototype.clear = function () {
|
||||
this.used.clear();
|
||||
this.needsUpdate = [];
|
||||
};
|
||||
Usage.prototype.update = function () {
|
||||
var update = this.needsUpdate;
|
||||
this.needsUpdate = [];
|
||||
return update;
|
||||
};
|
||||
return Usage;
|
||||
}());
|
||||
exports.Usage = Usage;
|
||||
//# sourceMappingURL=Usage.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue