Re: [qooxdoo-devel] Attempting to split Application.js
Brought to you by:
ecker,
martinwittemann
From: Richard S. <ric...@1u...> - 2014-02-24 10:40:43
|
Hi Peter, > Does the filename actually make a difference? Yes it does. Keep it always in sync with the class name. But this wasn't your initial issue - it's an OO misunderstanding (or you just forgot "new" :D). Either do it like this: .--- | ... | button1.addListener("execute", padded_online.Dialogs.TESTFUNC, this); | ... .--- | qx.Class.define("padded_online.Dialogs", | { | extend: padded_online.Application, | construct: function() | { | | }, | members : | { | testFunction: function() | { | alert("Test member func!"); | return; | } | }, | | statics : | { | TESTFUNC: function() | { | alert("Test static func!"); | } | } | }); | Hint: "return;" makes no sense. In JavaScript functions without return statements are returning undefined by default, which you are doing explicitly. or like that: .--- | ... | var dialogs = new padded_online.Dialogs(); | button1.addListener("execute", dialogs.testFunction, this); | ... Regards Richard |