mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-09 22:55:35 +00:00
More refactoring and porting to React
This commit is contained in:
@@ -8,12 +8,16 @@ export default class Page extends React.Component {
|
||||
language: React.PropTypes.object.isRequired
|
||||
};
|
||||
|
||||
static propTypes = {
|
||||
currentMenu: React.PropTypes.any
|
||||
};
|
||||
|
||||
constructor(props) {
|
||||
super(props);
|
||||
|
||||
// Autobind private functions
|
||||
Object.getOwnPropertyNames(this.constructor.prototype).forEach(prop => {
|
||||
if(prop.charAt(0) == '_' && typeof this[prop] === "function") {
|
||||
if(prop.charAt(0) == '_' && typeof this[prop] === 'function') {
|
||||
this[prop] = this[prop].bind(this);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user