PDA

View Full Version : [FIXED][3.0RC1] DataProxy -- Event name misspelled in request method



jacombs
22 Apr 2009, 11:32 AM
The event name prefix should be "before", not "beforee":



request : function(action, rs, params, reader, writer, callback, scope, options) {
params = params || {};
if (this.fireEvent("beforee" + action, this, params) !== false) {
try {
this.doRequest.apply(this, arguments);
}
catch (e) {
if (typeof(console) == 'object' && typeof(console.error) == 'function') {
console.error(e);
}
}
}
else {
callback.call(scope || this, null, arg, false);
}
},

christocracy
22 Apr 2009, 12:27 PM
Oops, sorry.
Fixed.