Skip to content

Commit

Permalink
Move hasOwnProperty into helper
Browse files Browse the repository at this point in the history
  • Loading branch information
mjackson committed Aug 18, 2014
1 parent 8c798c9 commit 8424231
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modules/components/Link.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ var React = require('react');
var ActiveState = require('../mixins/ActiveState');
var withoutProperties = require('../helpers/withoutProperties');
var transitionTo = require('../helpers/transitionTo');
var hasOwnProperty = require('../helpers/hasOwnProperty');
var makeHref = require('../helpers/makeHref');
var hasOwnProperty = Function.prototype.call.bind(Object.prototype.hasOwnProperty);

function isLeftClickEvent(event) {
return event.button === 0;
Expand Down
1 change: 1 addition & 0 deletions modules/helpers/hasOwnProperty.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = Function.prototype.call.bind(Object.prototype.hasOwnProperty);

0 comments on commit 8424231

Please sign in to comment.