I am rolling together a library to handle my interactions with the
IndexedDB JavaScript API. One of the functions I would like to do is
iterate the elements in a DB store (like a table) and the syntax to do
that is:
store.openCursor().onsuccess = function(event) {
var cursor = event.target.result;
if(cursor) {
// Process element
cursor.continue();
} else {
// Previous one was the last element
}
}
When trying to compile this, qooxdoo dies with the following error message:
Expected identifier but found reserved/CONTINUE: 'continue'.
file:database.Table, line:194, column:19
-
................................................................................................................................................................................................
Compilation failed.
I realize that "continue" is a JavaScript keyword, but it is also
valid as the name of an object member and this function is part of the
w3c API standards. Now, perhaps the standard is to blame, but this is
how it is specified and qooxdoo's disallowing of that method
invocation is a bug.
--Greg
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel