Skip to content

Commit 8865a71

Browse files
committed
coffee to es6 transfer fix + artifacts
1 parent 4039dbe commit 8865a71

File tree

5 files changed

+10
-13
lines changed

5 files changed

+10
-13
lines changed

dist/ui-scroll-jqlite.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
* angular-ui-scroll
33
* https://github.com/angular-ui/ui-scroll.git
4-
* Version: 1.3.3 -- 2016-03-04T12:15:03.597Z
4+
* Version: 1.3.3 -- 2016-03-15T20:00:58.115Z
55
* License: MIT
66
*/
77

dist/ui-scroll-jqlite.min.js

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

dist/ui-scroll.js

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
* angular-ui-scroll
33
* https://github.com/angular-ui/ui-scroll.git
4-
* Version: 1.3.3 -- 2016-03-04T12:15:03.597Z
4+
* Version: 1.3.3 -- 2016-03-15T20:00:58.115Z
55
* License: MIT
66
*/
77

@@ -266,8 +266,7 @@ angular.module('ui.scroll', []).directive('uiScrollViewport', function () {
266266
},
267267
bottomDataPos: function bottomDataPos() {
268268
var scrollHeight = viewport[0].scrollHeight;
269-
scrollHeight = scrollHeight !== null ? scrollHeight : viewport[0].document.documentElement.scrollHeight;
270-
269+
scrollHeight = scrollHeight != null ? scrollHeight : viewport[0].document.documentElement.scrollHeight;
271270
return scrollHeight - bottomPadding.height();
272271
},
273272
topDataPos: function topDataPos() {
@@ -572,10 +571,8 @@ angular.module('ui.scroll', []).directive('uiScrollViewport', function () {
572571
viewport.createPaddingElements(template[0]);
573572
// Destroy template's scope to remove any watchers on it.
574573
scope.$destroy();
575-
// also remove the template when the directive scope is destroyed
576-
$scope.$on('$destroy', function () {
577-
return template.remove();
578-
});
574+
// We don't need template anymore.
575+
template.remove();
579576
});
580577

581578
adapter.reload = reload;

0 commit comments

Comments
 (0)