challenges: pass down if user is member of group (group._isMember) for

performance. some bug fixes
This commit is contained in:
Tyler Renelle
2013-10-29 12:26:13 -07:00
parent 219318b405
commit be657a76e0
5 changed files with 20 additions and 8 deletions

View File

@@ -18,7 +18,7 @@ habitrpg.controller("RootCtrl", ['$scope', '$rootScope', '$location', 'User', '$
// indexOf helper
$scope.indexOf = function(haystack, needle){
return ~haystack.indexOf(needle);
return haystack && ~haystack.indexOf(needle);
}
$scope.safeApply = function(fn) {