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

Commit 13fda8e

Browse files
committed
Correct Renderer selection (side effect of #37)
1 parent 50d1fa3 commit 13fda8e

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

dist/angular-datatables.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@
352352
if (angular.isDefined(options.fnPromise) && options.fnPromise !== null) {
353353
return new PromiseRenderer(options);
354354
}
355-
if (angular.isDefined(options.sAjaxSource) && options.sAjaxSource !== null || options.ajax !== null) {
355+
if (angular.isDefined(options.sAjaxSource) && options.sAjaxSource !== null || angular.isDefined(options.ajax) && options.ajax !== null) {
356356
return new AjaxRenderer(options);
357357
}
358358
return new DefaultRenderer(options);

0 commit comments

Comments
 (0)