bytespider / jsOAuth

JavaScript implimentation of the OAuth protocol. Currently supports version 1.0 (RFC5849) of the specification. Node.js & CommonJS compatible.
http://bytespider.github.com/jsOAuth/
MIT License
557 stars 109 forks source link

URI.js line 10 missed a comma after statement, cause error in Titanium #20

Closed ohdarling closed 12 years ago

ohdarling commented 12 years ago

The parser line missed a comma at end of the line, that will cause an error in Titanium Mobile SDK 1.7.2 on iPhone Device.

Error message is:

message = "Left side of assignment is not a reference.";

Just add a comma will fix this issue.

        var args = arguments, args_callee = args.callee,
            parsed_uri, scheme, host, port, path, query, anchor,
            parser = /^([^:\/?#]+?:\/\/)*([^\/:?#]*)?(:[^\/?#]*)*([^?#]*)(\?[^#]*)?(#(.*))*/
            uri = this;
lukaszkorecki commented 12 years ago

I just pushed a fix for that, could you let us know if it works now?

ohdarling commented 12 years ago

It works, thanks a lot.