Commit Graph

10 Commits

Author SHA1 Message Date
Kegan Dougal cde948814a Linting (jsdoc) 2015-10-13 10:20:38 +01:00
Kegan Dougal 2bb65fe644 Add RoomState.getLastModifiedTime() and JSDoc 2015-10-13 10:18:01 +01:00
Kegan Dougal 1260dcee76 Add User.getLastModifiedTime() 2015-10-13 10:11:22 +01:00
Kegan Dougal 93a104fe4c Fire presence first time if presence event unset. 2015-07-20 11:28:13 +01:00
Kegan Dougal f77e8e3bf7 Add User.events.presence property for storing the m.presence event for a user. 2015-06-15 10:20:04 +01:00
Kegan Dougal 4c3e56ad4c Add test for event emitting. Fix reEmit function. 2015-06-11 11:58:31 +01:00
Kegan Dougal eaa02cd2ad Add utils.inherits. Make User inherit EventEmitter.
utils.inherits is the Node.js impl but with the addition of a polyfill for
Object.create().
2015-06-11 11:37:43 +01:00
Kegan Dougal c737068fe7 Don't fire events in the constructor; you can't listen for them. 2015-06-11 11:12:31 +01:00
Kegan Dougal 07f77c495b Move event jsdoc to respective classes. Document which functions fire.
This tends to boil down into a setXEvent method which can fire if it updates
the model.
2015-06-11 10:54:25 +01:00
Kegan Dougal f086bcca4c Add User class. Convert store to store/get User objects. 2015-06-09 10:55:26 +01:00