goupviet / joose-js

Automatically exported from code.google.com/p/joose-js
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Delayed Execution incompatible with Gears #17

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use ORM_async in a browser that does not support HTML5 SQL storage
2. Define and store instances of the entities Person and Car as per joose-
js.googlecode.com/svn/trunk/examples/simple_orm/async/test.js
3. Now do this:
MyEntities.Car.select('from ' + MyEntities.Car.tableName(), 
null).each(function(c) {
  console.log(c.brand)
}

What is the expected output? What do you see instead?
Expect to see some brands listed, but instead no output is produced

What version of the product are you using? On what operating system?
ORM_async 2.0

Please provide any additional information below.
The reason this doesn't work is that with GEARS_COMPAT set to true, the return 
value is delayed 
past the execution of the DelayedExecution object.

Original issue reported on code.google.com by nrmeht...@gmail.com on 24 Mar 2009 at 6:40