diff options
| author | Jules Laplace <jules@okfoc.us> | 2014-06-20 16:57:36 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2014-06-20 16:57:44 -0400 |
| commit | 850c4202885867350ecccc88a4f315d6196a7326 (patch) | |
| tree | cd5d09042b00596c95c2787e6fab29309a8b522c /public/assets/javascripts/rectangles/engine/rooms/_rooms.js | |
| parent | 1668d6e2e20c9bd53f3f6a299541c582da9742b4 (diff) | |
delete/resize media
Diffstat (limited to 'public/assets/javascripts/rectangles/engine/rooms/_rooms.js')
| -rw-r--r-- | public/assets/javascripts/rectangles/engine/rooms/_rooms.js | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/public/assets/javascripts/rectangles/engine/rooms/_rooms.js b/public/assets/javascripts/rectangles/engine/rooms/_rooms.js index 0d6c267..0186e9a 100644 --- a/public/assets/javascripts/rectangles/engine/rooms/_rooms.js +++ b/public/assets/javascripts/rectangles/engine/rooms/_rooms.js @@ -82,19 +82,7 @@ var Rooms = new function(){ return [] } - base.uid = (function(){ - var id = 0 - return function(s){ - s = s || "" - var ss - while (1) { - ss = s + (id++) - if (! (ss in base.list)) { - return ss - } - } - } - })() + base.uid = UidGenerator(base.list) base.sorted_by_position = function(){ return sort_rooms_by_position( base.values() ) |
