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

Commit d0fa2f1

Browse files
committed
Use _.invokeMap instead of _.invoke. [closes #157]
1 parent 6bf417b commit d0fa2f1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

example/jsperf/ui.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@
704704
setTimeout(function() {
705705
ui.off();
706706
ui.browserscope.post = function() {};
707-
_.invoke(ui.benchmarks, 'off');
707+
_.invokeMap(ui.benchmarks, 'off');
708708
}, 1);
709709
}
710710

plugin/ui.browserscope.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@
305305
*/
306306
function createSnapshot() {
307307
// clone benches, exclude those that are errored, unrun, or have hz of Infinity
308-
var benches = _.invoke(filter(ui.benchmarks, 'successful'), 'clone'),
308+
var benches = _.invokeMap(filter(ui.benchmarks, 'successful'), 'clone'),
309309
fastest = filter(benches, 'fastest'),
310310
slowest = filter(benches, 'slowest');
311311

0 commit comments

Comments
 (0)