X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=js%2Feuphorik.js;h=1d6f3e87eb1e46fa3b71cd4242136780add13e4f;hp=93058a185374ddf194b5dfc730b1da87197ed891;hb=6dd1bccff42c25fd646f2538cafa1cb19e45f88c;hpb=cdff108e3b859493cff8e3f37fc8b52cb20d75d5 diff --git a/js/euphorik.js b/js/euphorik.js index 93058a1..1d6f3e8 100755 --- a/js/euphorik.js +++ b/js/euphorik.js @@ -54,7 +54,10 @@ var euphorik = {} ;; euphorik.include("client"); ;; euphorik.include("pageEvent"); -;; euphorik.include("pageMinichat"); +;; euphorik.include("pageMinichat/pageMinichat"); +;; euphorik.include("pageMinichat/conversation"); +;; euphorik.include("pageMinichat/conversations"); +;; euphorik.include("pageMinichat/message"); ;; euphorik.include("pageAdmin"); ;; euphorik.include("pageProfile"); ;; euphorik.include("pageRegister"); @@ -74,6 +77,16 @@ var objectEach = function(o, f) { } } }; + +var objectMemberCount = function(o) { + var nb = 0; + for (var k in o) { + if (o.hasOwnProperty(k)) { + nb += 1; + } + } + return nb; +}; Array.prototype.each = function(f) { for (var i = 0; i < this.length; i++) {