Skip to content

Commit 8424231

Browse files
committed
Move hasOwnProperty into helper
1 parent 8c798c9 commit 8424231

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

modules/components/Link.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ var React = require('react');
22
var ActiveState = require('../mixins/ActiveState');
33
var withoutProperties = require('../helpers/withoutProperties');
44
var transitionTo = require('../helpers/transitionTo');
5+
var hasOwnProperty = require('../helpers/hasOwnProperty');
56
var makeHref = require('../helpers/makeHref');
6-
var hasOwnProperty = Function.prototype.call.bind(Object.prototype.hasOwnProperty);
77

88
function isLeftClickEvent(event) {
99
return event.button === 0;

modules/helpers/hasOwnProperty.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = Function.prototype.call.bind(Object.prototype.hasOwnProperty);

0 commit comments

Comments
 (0)