mirror of https://github.com/vector-im/riot-web
Use ES6 export style
parent
7221900497
commit
39427839b9
|
@ -19,14 +19,13 @@ const onAction = function(payload) {
|
||||||
|
|
||||||
let ref = null;
|
let ref = null;
|
||||||
|
|
||||||
module.exports = {
|
export function startListening () {
|
||||||
startListening: function () {
|
|
||||||
ref = dis.register(onAction);
|
ref = dis.register(onAction);
|
||||||
},
|
}
|
||||||
stopListening: function () {
|
|
||||||
|
export function stopListening () {
|
||||||
if (ref) {
|
if (ref) {
|
||||||
dis.unregister(ref);
|
dis.unregister(ref);
|
||||||
ref = null;
|
ref = null;
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
};
|
|
||||||
|
|
|
@ -41,7 +41,7 @@ var Lifecycle = require('../../Lifecycle');
|
||||||
var PageTypes = require('../../PageTypes');
|
var PageTypes = require('../../PageTypes');
|
||||||
|
|
||||||
var createRoom = require("../../createRoom");
|
var createRoom = require("../../createRoom");
|
||||||
var UDEHandler = require("../../UnknownDeviceErrorHandler");
|
import * as UDEHandler from '../../UnknownDeviceErrorHandler';
|
||||||
|
|
||||||
module.exports = React.createClass({
|
module.exports = React.createClass({
|
||||||
displayName: 'MatrixChat',
|
displayName: 'MatrixChat',
|
||||||
|
|
Loading…
Reference in New Issue