Browse Source

re-order to match api

Nathaniel van Diepen 11 years ago
parent
commit
e42244b9a8
1 changed files with 8 additions and 7 deletions
  1. 8 7
      app/www/js/omnomirc.js

+ 8 - 7
app/www/js/omnomirc.js

@@ -509,21 +509,22 @@
 						tabs.push({
 							name: name,
 							body: frag,
-							users: [],
-							close: function(){
-								$o.ui.tabs.remove(id);
-							},
-							select: function(){
-								$o.ui.tabs.select(id);
-							},
+							date: new Date(),
 							send: function(msg){
 								$o.chat.send(msg,tabs[id].name);
 							},
+							close: function(){
+								$o.ui.tabs.remove(id);
+							},
+							users: [],
 							names: function(){
 								socket.emit('names',{
 									name: tabs[id].name
 								});
 							},
+							select: function(){
+								$o.ui.tabs.select(id);
+							},
 							clear: function(){
 								$cl.html('');
 								tabs[id].body = document.createDocumentFragment();