/**\r
* Gestion des pages.\r
*/\r
-euphorik.Pages = function(fragment) {\r
- this.fragment = fragment;\r
+euphorik.Pages = function(fragment, communication) {\r
+ this.fragment = fragment;
+ this.communication = communication;\r
this.pageCourante = undefined;\r
this.pageDefaut = undefined;\r
this.pages = {};\r
*/\r
euphorik.Pages.prototype.ajouterPage = function(page, defaut) {\r
if (typeof page === "string") {\r
- page = new euphorik.PageStatique(page);\r
+ page = new euphorik.PageStatique(page, this.communication);\r
}\r
\r
page.pages = this; // la magie des langages dynamiques : le foutoire\r