Closed
Description
This logs both a
and b
:
var M = {
statics: {
moo: function() { console.log('a'); }
}
};
var X = React.createClass({
mixins: [M],
statics: {
moo: function() { console.log('b'); }
},
render: function(){}
});
X.moo();
This seems weird to me and inconsistent with the behavior for non-static functions. Can we change this to give an error too?