update code style

This commit is contained in:
afc163 2015-08-18 16:24:18 +08:00
parent 192f150bc2
commit 77651c0621

View File

@ -5,14 +5,12 @@ function noop() {
}
let mousePosition;
function onDocumentMousemove(e) {
Dom.addEventListener(document, 'mousemove', function onDocumentMousemove(e) {
mousePosition = {
x: e.pageX,
y: e.pageY
};
}
Dom.addEventListener(document, 'mousemove', onDocumentMousemove);
});
export default React.createClass({
getDefaultProps() {