From 225bf0e6ecbabe360c58de172b43d8aee83862c5 Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Sun, 28 Jan 2007 07:34:43 +0000 Subject: [PATCH] prototype: remove redundant conditional --- src/ajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ajax.js b/src/ajax.js index a661ee9..ca40b3e 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -94,7 +94,7 @@ Ajax.Request.prototype = Object.extend(new Ajax.Base(), { if (params = Hash.toQueryString(params)) { // when GET, append parameters to URL - if (this.method == 'get' && params) + if (this.method == 'get') this.url += (this.url.include('?') ? '&' : '?') + params; else if (/Konqueror|Safari|KHTML/.test(navigator.userAgent)) params += '&_=';