File tree Expand file tree Collapse file tree 8 files changed +1880
-1898
lines changed Expand file tree Collapse file tree 8 files changed +1880
-1898
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 4444 "when" : " ^3.7.2"
4545 },
4646 "devDependencies" : {
47- "babelify" : " ^5 .0.4 " ,
47+ "babelify" : " ^6 .0.2 " ,
4848 "browser-sync" : " ^2.1.6" ,
4949 "browserify" : " ^8.0.3" ,
5050 "clean-css" : " ^3.1.9" ,
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import AuthService from '../services/AuthService'
77
88export default class AuthenticatedApp extends React . Component {
99 constructor ( ) {
10+ super ( )
1011 this . state = this . _getLoginState ( ) ;
1112 }
1213
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ export default (ComposedComponent) => {
1111 }
1212
1313 constructor ( ) {
14+ super ( )
1415 this . state = this . _getLoginState ( ) ;
1516 }
1617
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import Auth from '../services/AuthService'
55export default class Login extends React . Component {
66
77 constructor ( ) {
8+ super ( )
89 this . state = {
910 user : '' ,
1011 password : ''
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import Auth from '../services/AuthService'
55export default class Signup extends React . Component {
66
77 constructor ( ) {
8+ super ( )
89 this . state = {
910 user : '' ,
1011 password : '' ,
Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ import AppDispatcher from '../dispatchers/AppDispatcher';
44export default class BaseStore extends EventEmitter {
55
66 constructor ( actionSubscribe ) {
7- this . _dispatchToken = AppDispatcher . register ( actionSubscribe ) ;
7+ super ( )
8+ this . _dispatchToken = AppDispatcher . register ( actionSubscribe ( ) ) ;
89 }
910
1011 get dispatchToken ( ) {
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import jwt_decode from 'jwt-decode';
66class LoginStore extends BaseStore {
77
88 constructor ( ) {
9- super ( this . _registerToActions . bind ( this ) ) ;
9+ super ( ( ) => this . _registerToActions . bind ( this ) ) ;
1010 this . _user = null ;
1111 this . _jwt = null ;
1212 }
@@ -41,5 +41,3 @@ class LoginStore extends BaseStore {
4141}
4242
4343export default new LoginStore ( ) ;
44-
45-
You can’t perform that action at this time.
0 commit comments