REPORT de la branche 1.1 : 477->494
[euphorik.git] / js / pages.js
index df515e6..2f0abfc 100644 (file)
@@ -22,8 +22,9 @@
 /**\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
@@ -36,7 +37,7 @@ euphorik.Pages = function(fragment) {
   */\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