Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build dist file #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions dist/react-auto-bind.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

'use strict';

var exclude = ['render', 'componentWillReceiveProps', 'componentDidMount', 'componentDidUpdate', 'shouldComponentUpdate', 'componentWillUnmount', 'componentWillUpdate', 'forceUpdate', 'componentWillMount'];
var exclude = ['render', 'componentWillReceiveProps', 'componentDidMount', 'componentDidUpdate', 'componentDidCatch', 'shouldComponentUpdate', 'componentWillUnmount', 'componentWillUpdate', 'forceUpdate', 'componentWillMount'];

function reactAutoBind(self) {
var reactAutoBind = function reactAutoBind(self) {
for (var _len = arguments.length, bindOnly = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
bindOnly[_key - 1] = arguments[_key];
}
Expand All @@ -20,12 +20,12 @@ function reactAutoBind(self) {
});

return self;
}
};

if (typeof module !== 'undefined' && module.exports) {
module.exports = reactAutoBind;
} else if (typeof define === 'function' && define.amd) {
// register as 'react-auto-bind', consistent with npm package name
// Register as 'react-auto-bind', consistent with npm package name
define('react-auto-bind', [], function () {
return reactAutoBind;
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-auto-bind",
"version": "0.4.1",
"version": "0.4.2",
"description": "Auto bind methods to their class instance excluding React Lifecycle Methods",
"license": "MIT",
"repository": "housinghq/react-auto-bind",
Expand Down