Make Ajax.Request#isSameOrigin JavaScript Lint compliant. Backport fix to 1.5.1.2.

This commit is contained in:
Tobie Langel 2008-01-24 03:02:34 +00:00
parent 0f97f4ce20
commit 794457da75
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
*SVN*
* Make Ajax.Request#isSameOrigin JavaScript Lint compliant. [Andrew Dupont]
* Properly serialize form fields with names that collide with built-in JS properties (like "length" or "toString"). Closes #9609. [gryn, kangax]
* Make Object.isArray correctly identify arrays created in another frame. Closes #10374. [pointy, Dean Edwards, Andrew Dupont, Tobie Langel]

View File

@ -208,7 +208,7 @@ Ajax.Request = Class.create(Ajax.Base, {
},
isSameOrigin: function() {
var m = this.url.match(/^\s*https?:\/\/[^/]*/);
var m = this.url.match(/^\s*https?:\/\/[^\/]*/);
return !m || (m[0] == '#{protocol}//#{domain}#{port}'.interpolate({
protocol: location.protocol,
domain: document.domain,