Skip to content

Commit

Permalink
#7 - first vs repeat view
Browse files Browse the repository at this point in the history
- added option `repeatView` to specify if result data should be read from repeatView instead of firstView. Defaults to `false`
  • Loading branch information
Jordan Foreman committed Aug 12, 2014
1 parent 3df62b8 commit acf379f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tasks/perfbudget.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ module.exports = function(grunt) {
authenticationType: '',
video: 1,
runs: 1,
repeatView: false,
budget: {
visualComplete: '',
render: '1000',
Expand All @@ -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 = "";

Expand Down

0 comments on commit acf379f

Please sign in to comment.