Ivan - Remove unnecessary library [skip ci]

This commit is contained in:
Ivan Diaz 2016-07-23 16:58:44 -03:00
parent 8a89efa653
commit 1e634fe366
2 changed files with 2 additions and 12 deletions

View File

@ -7,7 +7,6 @@ const classNames = require('classnames');
const UserActions = require('actions/user-actions');
const UserStore = require('stores/user-store');
const focus = require('lib-core/focus');
const empty = require('lib-core/empty');
const Button = require('core-components/button');
const Form = require('core-components/form');
@ -49,7 +48,7 @@ let MainHomePageLoginWidget = React.createClass({
<Button type="primary">LOG IN</Button>
</div>
</Form>
<Button className="login-widget--forgot-password" type="link" onClick={this.handleForgotPasswordClick} onMouseDown={empty.preventDefault}>
<Button className="login-widget--forgot-password" type="link" onClick={this.handleForgotPasswordClick} onMouseDown={(event) => {event.preventDefault()}}>
{'Forgot your password?'}
</Button>
</Widget>
@ -67,7 +66,7 @@ let MainHomePageLoginWidget = React.createClass({
<Button type="primary">Recover my password</Button>
</div>
</Form>
<Button className="login-widget--forgot-password" type="link" onClick={this.handleBackToLoginClick} onMouseDown={empty.preventDefault}>
<Button className="login-widget--forgot-password" type="link" onClick={this.handleBackToLoginClick} onMouseDown={(event) => {event.preventDefault()}}>
{'Back to login form'}
</Button>
</Widget>

View File

@ -1,9 +0,0 @@
export default {
preventDefault(event) {
event.preventDefault();
},
stopPropagation(event) {
event.stopPropagation();
}
}