diff --git a/js/filters/sortByTime.js b/js/filters/sortByTime.js index 0d23bff..f4425b2 100644 --- a/js/filters/sortByTime.js +++ b/js/filters/sortByTime.js @@ -1,10 +1,8 @@ // Sort watchers by time // Used by the performance tab panelApp.filter('sortByTime', function () { - return function (input, range) { - var copy = input.slice(0), - min = range[0], - max = range[1]; + return function (input, min, max) { + var copy = input.slice(0); copy = copy.sort(function (a, b) { return b.time - a.time; diff --git a/panel.html b/panel.html index 526b78f..0a92faf 100644 --- a/panel.html +++ b/panel.html @@ -98,7 +98,7 @@

Watch Expressions

-
+
{{watch.name | first}} | {{watch.percent}}% | {{watch.time}}ms