mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-09-30 09:06:56 +13:00
code review
This commit is contained in:
parent
5131a5d806
commit
ead35cedbe
1 changed files with 2 additions and 1 deletions
|
@ -162,6 +162,7 @@ var LogEntry = function() {
|
||||||
var logEntryJunkyard = [];
|
var logEntryJunkyard = [];
|
||||||
|
|
||||||
LogEntry.prototype.dispose = function() {
|
LogEntry.prototype.dispose = function() {
|
||||||
|
this.url = this.type = '';
|
||||||
// Let's not grab and hold onto too much memory..
|
// Let's not grab and hold onto too much memory..
|
||||||
if ( logEntryJunkyard.length < 200 ) {
|
if ( logEntryJunkyard.length < 200 ) {
|
||||||
logEntryJunkyard.push(this);
|
logEntryJunkyard.push(this);
|
||||||
|
@ -226,8 +227,8 @@ PageRequestStats.prototype.dispose = function() {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
stringPacker.forget(reqKey.slice(3));
|
stringPacker.forget(reqKey.slice(3));
|
||||||
delete requests[reqKey];
|
|
||||||
}
|
}
|
||||||
|
this.requests = {};
|
||||||
var i = this.ringBuffer.length;
|
var i = this.ringBuffer.length;
|
||||||
var logEntry;
|
var logEntry;
|
||||||
while ( i-- ) {
|
while ( i-- ) {
|
||||||
|
|
Loading…
Reference in a new issue