Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
Use _.invokeMap instead of _.invoke. [closes #157]
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Jul 31, 2016
1 parent 6bf417b commit d0fa2f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/jsperf/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@
setTimeout(function() {
ui.off();
ui.browserscope.post = function() {};
_.invoke(ui.benchmarks, 'off');
_.invokeMap(ui.benchmarks, 'off');
}, 1);
}

Expand Down
2 changes: 1 addition & 1 deletion plugin/ui.browserscope.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@
*/
function createSnapshot() {
// clone benches, exclude those that are errored, unrun, or have hz of Infinity
var benches = _.invoke(filter(ui.benchmarks, 'successful'), 'clone'),
var benches = _.invokeMap(filter(ui.benchmarks, 'successful'), 'clone'),
fastest = filter(benches, 'fastest'),
slowest = filter(benches, 'slowest');

Expand Down

0 comments on commit d0fa2f1

Please sign in to comment.