developerforce/Force.com-JavaScript-REST-Toolkit — pull request #28 by jpearson-sfdc (2013-03-05 21:20:09+00:00)
Title: Add support for custom domains from My Domains

If a user sets up a custom domain using Setup > Company Profile > My Domain, there URL will be "https://abc.my.salesforce.com". Without this patch, the proxy calls will fail due to an invalid instanceUrl value of "https://my.salesforce.com".