Comparing version 1.1.1 to 1.1.2
@@ -20,6 +20,2 @@ import { Cache } from './buffer/cache'; | ||
this.eof.dispose(); | ||
this._items.forEach(item => { | ||
delete item.element; | ||
}); | ||
this._items = []; | ||
} | ||
@@ -26,0 +22,0 @@ reset(force, startIndex) { |
@@ -6,3 +6,2 @@ export class Reactive { | ||
this.value = value; | ||
this.initialValue = value; | ||
} | ||
@@ -49,9 +48,6 @@ this.options = options || {}; | ||
} | ||
dispose(reset) { | ||
dispose() { | ||
this.subscriptions.forEach(sub => sub.off()); | ||
if (reset) { | ||
this.value = this.initialValue; | ||
} | ||
} | ||
} | ||
//# sourceMappingURL=reactive.js.map |
export default { | ||
name: 'vscroll', | ||
version: '1.1.1' | ||
version: '1.1.2' | ||
}; | ||
//# sourceMappingURL=version.js.map |
@@ -145,7 +145,2 @@ import { Scroller } from './scroller'; | ||
this.isInitialized = false; | ||
for (const prop in this) { | ||
if (Object.prototype.hasOwnProperty.call(this, prop)) { | ||
delete this[prop]; | ||
} | ||
} | ||
} | ||
@@ -152,0 +147,0 @@ finalize() { |
@@ -21,6 +21,2 @@ import { __read, __spreadArray } from "tslib"; | ||
this.eof.dispose(); | ||
this._items.forEach(function (item) { | ||
delete item.element; | ||
}); | ||
this._items = []; | ||
}; | ||
@@ -27,0 +23,0 @@ Buffer.prototype.reset = function (force, startIndex) { |
@@ -7,3 +7,2 @@ import { __read, __values } from "tslib"; | ||
this.value = value; | ||
this.initialValue = value; | ||
} | ||
@@ -62,7 +61,4 @@ this.options = options || {}; | ||
}; | ||
Reactive.prototype.dispose = function (reset) { | ||
Reactive.prototype.dispose = function () { | ||
this.subscriptions.forEach(function (sub) { return sub.off(); }); | ||
if (reset) { | ||
this.value = this.initialValue; | ||
} | ||
}; | ||
@@ -69,0 +65,0 @@ return Reactive; |
export default { | ||
name: 'vscroll', | ||
version: '1.1.1' | ||
version: '1.1.2' | ||
}; | ||
//# sourceMappingURL=version.js.map |
@@ -165,7 +165,2 @@ import { __read, __spreadArray } from "tslib"; | ||
this.isInitialized = false; | ||
for (var prop in this) { | ||
if (Object.prototype.hasOwnProperty.call(this, prop)) { | ||
delete this[prop]; | ||
} | ||
} | ||
}; | ||
@@ -172,0 +167,0 @@ Workflow.prototype.finalize = function () { |
@@ -8,3 +8,2 @@ declare type On<T> = (value: T) => void; | ||
export declare class Reactive<T> { | ||
private initialValue; | ||
private value; | ||
@@ -19,4 +18,4 @@ private id; | ||
once(func: On<T>): Off; | ||
dispose(reset?: boolean): void; | ||
dispose(): void; | ||
} | ||
export {}; |
{ | ||
"name": "vscroll", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Virtual scroll engine", | ||
@@ -5,0 +5,0 @@ "main": "dist/bundles/vscroll.umd.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3312254
27958