From 033504ffe0c1340afe806b9988bb188ba0eaceb7 Mon Sep 17 00:00:00 2001 From: Brian Ford Date: Thu, 26 Jul 2012 11:30:55 -0700 Subject: [PATCH] refactored sortByTime filter arguments --- js/filters/sortByTime.js | 6 ++---- panel.html | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) 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