From acf379fed2d293045470127af5c108f968abb1c6 Mon Sep 17 00:00:00 2001 From: Jordan Foreman Date: Tue, 12 Aug 2014 13:39:00 -0500 Subject: [PATCH] #7 - first vs repeat view - added option `repeatView` to specify if result data should be read from repeatView instead of firstView. Defaults to `false` --- tasks/perfbudget.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/perfbudget.js b/tasks/perfbudget.js index 3c5e88d..cc5099f 100644 --- a/tasks/perfbudget.js +++ b/tasks/perfbudget.js @@ -30,6 +30,7 @@ module.exports = function(grunt) { authenticationType: '', video: 1, runs: 1, + repeatView: false, budget: { visualComplete: '', render: '1000', @@ -53,7 +54,7 @@ module.exports = function(grunt) { var processData = function(data) { var budget = options.budget, summary = data.data.summary, - median = data.data.median.firstView, + median = options.repeatView ? data.data.median.repeatView : data.data.median.firstView, pass = true, str = "";