Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

When Xhr is included but Forms are not then prepareParams fails due t…

…o undefined Form object.
  • Loading branch information...
commit fdc6c45af1f5d81160d245534486edcd36df18ec 1 parent 8d9e8f5
@jakubpawlowicz authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/xhr/xhr.js
View
2  src/xhr/xhr.js
@@ -205,7 +205,7 @@ var Xhr = RightJS.Xhr = new Class(Observer, {
// prepares user sending params
prepareParams: function(params) {
- if (params && params instanceof Form) {
+ if (('Form' in window) && params && params instanceof Form) {
this.form = params;
params = params.values();
}
Please sign in to comment.
Something went wrong with that request. Please try again.