zulip/static
Zev Benjamin 3f95e54dc1 dict: Add setdefault method
This is like Python's dict.setdefault.  I don't love the name, but
the consistency is nice.

We have lots of places where we do things like:

    if (! dict.has('foo')) {
      dict.set('foo', []);
    }

    var arr = dict.get('foo');
    arr.push(3);

We can now write:

    var arr = dict.setdefault('foo', []);
    arr.push(3);

(imported from commit b8933809c69ba47ec346ed51d53966793403e56c)
2013-08-21 14:11:39 -04:00
..
audio Move zephyr/static to just static. 2013-07-29 12:11:26 -04:00
html Change Humbug => Zulip in text/comments. 2013-08-07 10:00:07 -04:00
images Add Bitbucket integration instructions 2013-08-16 14:38:54 -04:00
js dict: Add setdefault method 2013-08-21 14:11:39 -04:00
styles Send IDLE continuously when idle, interpret a too-old status as offline. 2013-08-21 11:07:45 -04:00
templates Allow anyone to edit a "no topic" message 2013-08-19 16:29:30 -04:00
third Upgrade Font Awesome to v3.2.1. 2013-08-12 16:55:29 -04:00
.gitignore Move zephyr/static to just static. 2013-07-29 12:11:26 -04:00
favicon.ico Move zephyr/static to just static. 2013-07-29 12:11:26 -04:00
robots.txt Move zephyr/static to just static. 2013-07-29 12:11:26 -04:00