Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 1946bfe

Browse files
topherfangioThomasBurleson
authored andcommitted
docs($mdToast): Update docs with more info and better style.
It was not clear that the `$mdToast.simple()` method returned an object which also had all of the methods/options available from the `build()` and `show()` methods. * add a short comment to inform developers. * update styles to be more readable. Fixes #2420. Closes #5550.
1 parent 65e15bf commit 1946bfe

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

src/components/virtualRepeat/virtual-repeater.js

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -126,19 +126,9 @@ function VirtualRepeatContainerController($$rAF, $parse, $window, $scope, $eleme
126126
this.sizer = this.scroller.getElementsByClassName('md-virtual-repeat-sizer')[0];
127127
this.offsetter = this.scroller.getElementsByClassName('md-virtual-repeat-offsetter')[0];
128128

129-
// $$rAF(angular.bind(this, this.updateSize));
130-
//
131-
// // TODO: Come up with a more robust (But hopefully also quick!) way of
132-
// // detecting that we're not visible.
133-
// if ($attrs.ngHide) {
134-
// $scope.$watch($attrs.ngHide, angular.bind(this, function(hidden) {
135-
// if (!hidden) {
136-
// $$rAF(angular.bind(this, this.updateSize));
137-
// }
138-
// }));
139-
// }
140-
129+
// TODO: Come up with a more robust (But hopefully also quick!) way of
141130
var boundUpdateSize = angular.bind(this, this.updateSize);
131+
142132
$$rAF(function() {
143133
boundUpdateSize();
144134

0 commit comments

Comments
 (0)