Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

Commit c3f21cb

Browse files
committed
Correct RendererFactory so that it will not always return a PromiseRenderer
1 parent ce54398 commit c3f21cb

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

dist/angular-datatables.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,10 @@
239239
return new NGRenderer(options);
240240
}
241241
if (angular.isDefined(options)) {
242-
if (angular.isDefined(options.fnPromise)) {
242+
if (angular.isDefined(options.fnPromise) && options.fnPromise !== null) {
243243
return new PromiseRenderer(options);
244244
}
245-
if (angular.isDefined(options.sAjaxSource)) {
245+
if (angular.isDefined(options.sAjaxSource) && options.sAjaxSource !== null) {
246246
return new AjaxRenderer(options);
247247
}
248248
return new DefaultRenderer(options);

0 commit comments

Comments
 (0)