-
-
Notifications
You must be signed in to change notification settings - Fork 610
Closed
Labels
Description
lazyLoad function can set data.result to any kind of source. However, only ajax source and promises can get data asynchronously. But it is restricted to ajax and jquery
It would be useful if there was support for a general async callback
function(callback){
callback(source);
return true;
}Because callbacks now are synchronous, so it would break compatibility. A special value could be returned to specify it is asynchronous, or even wrapping the function maybe.
My use case is, I am using fancytree from Angular and I need to use $http to fetch my data instead of jquery. But I am sure it would be useful for other uses too.