hooray it works!
thank you Loren.
qx.Class.define("tswmobile.page.BarcodeList",
{
extend : qx.ui.mobile.page.NavigationPage,
members :
{
_initialize : function()
{
this.base(arguments);
var tlb1 = new qx.ui.mobile.toolbar.ToolBar();
this.add(tlb1);
var btn1 = new qx.ui.mobile.toolbar.Button("Button1",
"");
tlb1.add(btn1);
btn1.addListener("click", function(e)
{
this.__helloworld(); // OK
var db = window.openDatabase("Database", "1.0",
"Cordova Demo", 200000);
var callback = qx.lang.Function.bind(this.__queryDB, this);
db.transaction(callback);
},
this);
},
__queryDB : function(tx) {
this.__helloworld(); // OK
},
__helloworld : function() {
alert("hello world");
}
}
});
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/this-reference-tp7581251p7581256.html
Sent from the qooxdoo mailing list archive at Nabble.com.------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel