Skip to content

Commit 4165833

Browse files
committed
Handle sw-stage destroy properly. #6
1 parent 947e2b9 commit 4165833

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

build/angular-scroll-watch.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,8 @@
169169
};
170170

171171
p.destroy = function () {
172-
this._unbind(this.element);
172+
this.clearElement();
173173
this.configs = null;
174-
this.element = null;
175174
this.scrollHandler = null;
176175
this._digestDebounced = null;
177176
};

build/angular-scroll-watch.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/angular-scroll-watch.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,8 @@
169169
};
170170

171171
p.destroy = function () {
172-
this._unbind(this.element);
172+
this.clearElement();
173173
this.configs = null;
174-
this.element = null;
175174
this.scrollHandler = null;
176175
this._digestDebounced = null;
177176
};

0 commit comments

Comments
 (0)