Skip to content

Commit

Permalink
Modified to be more flexible about what types of results it can handl…
Browse files Browse the repository at this point in the history
…e from the ajax callback. Can now take any truthy result.
  • Loading branch information
micmath committed Jul 14, 2009
1 parent 9682c6f commit 1134ebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/forms/forms.js
Expand Up @@ -742,7 +742,7 @@ glow.forms.tests = {
var request = glow.net.get(url, {
onLoad: function(response) { /*debug*///console.log("glow.forms.tests.ajax - onLoad()");
var verdict = opts.arg(response);
if (typeof verdict == "boolean") verdict = [verdict, message];
if (typeof verdict.push == "undefined") verdict = [verdict, message];
callback(verdict[0], verdict[1]);
},
onError: function(response) {
Expand Down

0 comments on commit 1134ebf

Please sign in to comment.