fix events

This commit is contained in:
Luke Pulverenti 2015-11-29 13:16:42 -05:00
parent 7743007ece
commit 39965a9b6b
6 changed files with 11 additions and 26 deletions

View file

@ -128,16 +128,6 @@
return val.substring(val.indexOf('=') + 1).replace("'", '%27');
};
function onRequestFail(e) {
Events.trigger(self, 'requestfail', [
{
url: this.url,
status: e.status,
errorCode: e.getResponseHeader("X-Application-Error-Code")
}]);
}
function onFetchFail(url, response) {
Events.trigger(self, 'requestfail', [
@ -426,7 +416,7 @@
var value = params[key];
if (value) {
if (value !== null && value !== undefined && value !== '') {
values.push(encodeURIComponent(key) + "=" + encodeURIComponent(value));
}
}