Hi Stefan
You can define the var as a static var.
So you can call it with the full path: mb.Application.classSystemModules
Daniel
Am 24.01.2010 13:53, schrieb Stefan Meyer:
Hello,
i define a gloal var at top of the application.js
var classSystemModules;
and set it in the application.js
classSystemModules = new mb.system.Modules;
classSystemModules.getHome();
but how can i access it fro another casss like tis?
qx.Class.define("mb.system.MainMenu", {
extend : qx.application.Standalone,
members :
{
getMainMenuBar : function()
{
var menubar = new qx.ui.menubar.MenuBar();
return menubar;
},
getKasseBerichteMenu : function()
{
var menu = new qx.ui.menu.Menu;
var button = Array();
var command = Array();
command[0] = new qx.event.Command("Control+S");
command[1] = new qx.event.Command("Control+K");
command[2] = new qx.event.Command("Control+T");
command[3] = new qx.event.Command("Control+A");
command[4] = new qx.event.Command("Control+V");
var classSystemModules = new mb.system.Modules;
button[0].addListener("execute",
classSystemModules.getStartseite);
when i remove the
var classSystemModules = new mb.system.Modules;
i get alwys errors . How can i make it poit to the global variable?
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel