Permalink
Browse files

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

…o undefined Form object.
  • Loading branch information...
1 parent 8d9e8f5 commit fdc6c45af1f5d81160d245534486edcd36df18ec @jakubpawlowicz committed Sep 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/xhr/xhr.js
View
@@ -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();
}

0 comments on commit fdc6c45

Please sign in to comment.