projects
/
angular-drzb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a6399b
)
run filter only if value changed
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 13 Jan 2013 12:35:04 +0000
(13:35 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 13 Jan 2013 12:35:04 +0000
(13:35 +0100)
app/js/controllers.js
patch
|
blob
|
history
diff --git
a/app/js/controllers.js
b/app/js/controllers.js
index
a025606
..
1452752
100644
(file)
--- a/
app/js/controllers.js
+++ b/
app/js/controllers.js
@@
-210,6
+210,7
@@
function ListCtrl($scope, $log, Registration, RegistrationTypes, $filter) {
});
$scope.filter_list = function(newVal, oldVal) {
+ if ( newVal == oldVal ) return;
$log.info('filter_list', newVal, oldVal, 'search', $scope.search);
$scope.list = $filter('filter')($scope.all_registrations, $scope.search);
$log.info('list', $scope.list);