comparison nodejs/examples/mce/mainmenu.js @ 933:e45ad25a1462

Add the preview page.
author wycc
date Wed, 10 Nov 2010 07:57:35 +0800
parents bd9b0142fc7e
children 8c2862e40c28
comparison
equal deleted inserted replaced
932:bd9b0142fc7e 933:e45ad25a1462
23 app.loadSVG("main.svg"); 23 app.loadSVG("main.svg");
24 24
25 var i; 25 var i;
26 var self = this; 26 var self = this;
27 this.items=[]; 27 this.items=[];
28 for(i=0;i<4;i++) { 28 for(i=0;i<8;i++) {
29 this.items.push(app.get("cat"+i)); 29 this.items.push(app.get("cat"+i));
30 } 30 }
31 this.app = app; 31 this.app = app;
32 32
33 this.lightbar = app.get("lightbar"); 33 this.lightbar = app.get("lightbar");
148 animate.run([an], 0, 1); 148 animate.run([an], 0, 1);
149 } 149 }
150 } 150 }
151 151
152 MainMenu.prototype.changePage=function() { 152 MainMenu.prototype.changePage=function() {
153 this.app.loadSVG("browser.svg"); 153 this.app.loadSVG("preview.svg");
154 } 154 }
155 155
156 exports.MainMenu=MainMenu; 156 exports.MainMenu=MainMenu;