Permalink
Browse files

Verifying inParams value in request() before building a param from it

  • Loading branch information...
nicolas-rempulski committed Nov 13, 2012
1 parent d8f3b79 commit d9c0d702e4bc0ccf18ee24c45cbcac9ace8d98d9
Showing with 3 additions and 1 deletion.
  1. +3 −1 source/ajax/Ajax.js
View
@@ -52,7 +52,9 @@ enyo.kind({
}
else{
//If inParams parameter is not a string, build a query from it
- args.push(enyo.Ajax.objectToQuery(inParams))
+ if(inParams){
+ args.push(enyo.Ajax.objectToQuery(inParams));
+ }
}
//
if (this.method == "GET") {

0 comments on commit d9c0d70

Please sign in to comment.