CartoDB/cartodb.js — pull request #21 by danzajdband (2013-01-23 16:33:20+00:00)
Title: Correct HTTP method type and fixed typo

The "isGetRequest" var is true if params.type is "get". Since the params object is being created some lines ahead and the type property is never modified, "isGetRequest" is always true. So it always pass the parameters into the URL. I fixed it so it really checks only for the options type given.

In the other hand, because of the bad check a line with the typo "darams" instead of "params" was never performed. I fixed that too.