Skip to content

Commit

Permalink
use _.isFunction instead
Browse files Browse the repository at this point in the history
  • Loading branch information
aaaristo committed Jul 14, 2017
1 parent 82b25ca commit 7991e59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/enhanceElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function registerGoogleEventsFromReactProps(
eventMap: Object
) {
const registered = _.reduce(eventMap, (acc, googleEventName, onEventName) => {
if (typeof props[onEventName] === 'function') {
if (_.isFunction(props[onEventName])) {
acc.push(
google.maps.event.addListener(instance, googleEventName, props[onEventName])
);
Expand Down

0 comments on commit 7991e59

Please sign in to comment.