Mercurial > bugzilla-dashboard
diff js/bugzilla.js @ 69:51c1829956d9
Added mock XHR object and a simple bugzilla ajax test
author | Atul Varma <avarma@mozilla.com> |
---|---|
date | Sun, 25 Apr 2010 11:41:55 -0700 |
parents | b2e0ea0178fb |
children | 0eab9a3ff12f |
line wrap: on
line diff
--- a/js/bugzilla.js Sun Apr 25 10:58:25 2010 -0700 +++ b/js/bugzilla.js Sun Apr 25 11:41:55 2010 -0700 @@ -30,7 +30,7 @@ options.success(JSON.parse(xhr.responseText)); } - var xhr = new XMLHttpRequest(); + var xhr = options.xhr ? options.xhr : new XMLHttpRequest(); var url = this.BASE_URL + options.url; if (options.data)