use arrow function

This commit is contained in:
afc163 2015-08-18 20:27:40 +08:00
parent e95e557077
commit c3294dfc64

View File

@ -63,9 +63,7 @@ export default React.createClass({
// 100ms
// zoom
//
setTimeout(function() {
mousePosition = null;
}, 100);
setTimeout(() => mousePosition = null, 100);
});
mousePositionEventBinded = true;
},