balazs-endresz / jquery-translate

Automatically exported from code.google.com/p/jquery-translate
5 stars 5 forks source link

Not executing synchronously when async set to false #40

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Go to a web page that includes the plugin
2. Paste the following into the address bar: javascript:var 
x='sync';$.translate(['test'],{from:'en',to:'es',async:false,complete:function()
{alert(x);}});void(x='async');
3. Execute the javascript by pressing enter in the address bar

What is the expected output? What do you see instead?
It should alert sync, instead it alerts async.  This indicates the line 
follwing the translate command was executed and the translate command did not 
stall the javascript execution by using a synchronous callback.

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

Original issue reported on code.google.com by Brya...@gmail.com on 17 Jun 2010 at 6:40

GoogleCodeExporter commented 9 years ago
Nevermind, please close this, realized async isn't what I thought it was

Original comment by Brya...@gmail.com on 17 Jun 2010 at 9:07

GoogleCodeExporter commented 9 years ago
Yes, maybe I should clarify the documentation on that.

Original comment by balazs.endresz on 20 Jun 2010 at 11:29