Commit Graph

20 Commits

Author SHA1 Message Date
Philippe Proulx d332635a4e Fix message time display 2013-10-06 00:17:13 -04:00
Philippe Proulx 8a07be5aef weechat-protocol.js: factor common commands formatting code 2013-10-05 21:52:01 -04:00
Philippe Proulx 7780a66264 weechat-protocol.js: file header: mention command formatting 2013-10-05 20:09:59 -04:00
Philippe Proulx 4f07d6048f weechat-protocol.js: add comments to formatting functions 2013-10-05 20:05:57 -04:00
Philippe Proulx 257b4f01cf weechat-protocol.js: add command formatting helper functions 2013-10-05 19:54:07 -04:00
Philippe Proulx bd4bfe0cb3 weechat-protocol.js: fix hash table parsing 2013-10-05 19:28:54 -04:00
Philippe Proulx 187f22036b weechat-protocol.js: stricter slicing and type checking 2013-10-05 19:10:03 -04:00
Philippe Proulx f05fb72aaa weechat-protocol.js: comment object and methods 2013-10-05 18:30:16 -04:00
Philippe Proulx 74192c3df4 weechat-protocol.js: implement hash table parsing 2013-10-05 16:42:44 -04:00
Philippe Proulx de163d6bc9 weechat-protocol.js: add time parsing and factor "number as string" code 2013-10-05 15:58:34 -04:00
Philippe Proulx fef3e7542a weechat-protocol.js: move getSlice() 2013-10-05 15:32:32 -04:00
Philippe Proulx 0c02cae6a9 weechat-protocol.js: clean _uia2s() 2013-10-05 15:29:18 -04:00
Philippe Proulx df7d21f63f weechat-protocol.js: use pointer instead of slicing
I don't know if this changes anything to performance, but my instinct
tells me that it's better to update a pointer within a big array to get
slices than creating a new slice each time.

Perhaps the JS engine is clever enough to not create a copy each time
and only update its internal references of the array bounds, but just
in case...
2013-10-05 15:20:42 -04:00
Philippe Proulx c12f56c614 weechat-protocol.js: uniformize code 2013-10-05 15:10:57 -04:00
Philippe Proulx 7011f8f6b9 weechat-protocol.js: put similar methods nearby 2013-10-05 15:07:49 -04:00
Philippe Proulx f2b44a4e6b weechat-protocol.js: prepend _ to private methods names 2013-10-05 15:06:30 -04:00
Philippe Proulx 5a14c1a412 weechat-protocol.js: uiatos -> uia2s 2013-10-05 15:03:36 -04:00
Philippe Proulx 3a9ccc4098 weechat-protocol.js: refactor with prototype 2013-10-05 15:01:51 -04:00
Philippe Proulx 9bdcb814ab weechat-protocol.js: clean code (indentation/trailing spaces) 2013-10-05 14:24:36 -04:00
Philippe Proulx a7f3412b5d protocol.js -> weechat-protocol.js
This makes it more clear that this script's code parses the WeeChat
protocol specifically.
2013-10-05 14:23:18 -04:00