Merge remote-tracking branch 'joeyespo/master'
This commit is contained in:
commit
ad5dbabb35
1 changed files with 4 additions and 1 deletions
|
@ -125,6 +125,7 @@ function EventManager(options, _sources) {
|
|||
}
|
||||
}else{
|
||||
var url = source.url;
|
||||
var eventTransform = source.eventTransform || options.eventTransform;
|
||||
if (url) {
|
||||
var success = source.success;
|
||||
var error = source.error;
|
||||
|
@ -155,7 +156,9 @@ function EventManager(options, _sources) {
|
|||
if ($.isArray(res)) {
|
||||
events = res;
|
||||
}
|
||||
callback(events);
|
||||
callback(events && eventTransform
|
||||
? $.map(events, eventTransform)
|
||||
: events);
|
||||
},
|
||||
error: function() {
|
||||
applyAll(error, this, arguments);
|
||||
|
|
Loading…
Reference in a new issue