So I created a seperate class file for my application
(analysis/util/SummaryJSON.js). I'm trying to create a JSON accessor class,
so I lifted the code from the example and have it below. I next try to
access this in my Application.JS file but end up with a JS error in FireBug
saying that 'analysis.util.SummaryJSON.printTestData' is not a function.
Any insight would be useful, seems pretty trivial in the documentation but
haven't had any luck.
SummaryJSON.js
qx.Class.define("analysis.util.SummaryJSON",
{
extend : qx.core.Object,
construct : function(data) {
this._data = data;
},
members :
{
getTestData : function() { return this._data.testData }
}
});
function printTestData(summary) {
var x = summary.getTestData();
console.log(x);
}
Application.js
analysis.util.SummaryJSON.printTestData(new
analysis.util.SummaryJSON(summaryDataList));
Matt
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel