Skip to content

Commit ee34a5f

Browse files
author
jacobpurcell
committed
underscore.function.combinators: use static invocation for _.partial() call
1 parent e0b80ad commit ee34a5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

underscore.function.combinators.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,12 @@
7777
// Composes a bunch of predicates into a single predicate that
7878
// checks all elements of an array for conformance to all of the
7979
// original predicates.
80-
conjoin: _(createPredicateApplicator).partial('every'),
80+
conjoin: _.partial(createPredicateApplicator, ('every')),
8181

8282
// Composes a bunch of predicates into a single predicate that
8383
// checks all elements of an array for conformance to any of the
8484
// original predicates.
85-
disjoin: _(createPredicateApplicator).partial('some'),
85+
disjoin: _.partial(createPredicateApplicator, 'some'),
8686

8787
// Takes a predicate-like and returns a comparator (-1,0,1).
8888
comparator: function(fun) {

0 commit comments

Comments
 (0)