mark blue groups who are currently on one of presets

How can i write it in for in loop?
בתאריך 29 באוג' 2014 11:13, "iwuvjhdva" <notifications@github.com> כתב:

> In conference/static/js/controllers.js:
>
> > @@ -200,6 +200,16 @@ function presetsCtrl ($scope,$rootScope,GetPresets) {
> >              return id;
> >      };
> >
> > +    $rootScope.isGroupInPresets = function(group) {
> > +        for (var i=0; i<$scope.presets.length;i++) {
>
> Maybe "for in..." loop? More readable IMHO and also the length calculator
> $scope.presets.length is called on every loop iteration if you call it like
> this. These are all only minor issues so you can ignore my comment if you
> want.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/iwuvjhdva/galaxy_trial/pull/5/files#r16886240>.
>