weepy / kaffeine

Extended Javascript for Pros
http://weepy.github.com/kaffeine/
MIT License
180 stars 16 forks source link

"foo['batz']! someArgs" results in Error #34

Open benekastah opened 13 years ago

benekastah commented 13 years ago

Async function calls don't respect functions accessed from an object with the bracket syntax. The specific error is: Error: Unexpected token: operator (!)

weepy commented 13 years ago

Can you give an example ?

On Tue, Jun 21, 2011 at 4:31 AM, benekastah < reply@reply.github.com>wrote:

Async function calls don't respect functions accessed from an object with the bracket syntax.

Reply to this email directly or view it on GitHub: https://github.com/weepy/kaffeine/issues/34

benekastah commented 13 years ago

The code

method = :get
server[method]! route
doStuff()

generates an error. I would expect it to do this:

method = 'get'
server[method](route, function() {
doStuff()
})