Skip to content

Commit

Permalink
Correct RendererFactory so that it will not always return a PromiseRe…
Browse files Browse the repository at this point in the history
…nderer
  • Loading branch information
l-lin committed Jul 10, 2014
1 parent ce54398 commit c3f21cb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/angular-datatables.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,10 @@
return new NGRenderer(options);
}
if (angular.isDefined(options)) {
if (angular.isDefined(options.fnPromise)) {
if (angular.isDefined(options.fnPromise) && options.fnPromise !== null) {
return new PromiseRenderer(options);
}
if (angular.isDefined(options.sAjaxSource)) {
if (angular.isDefined(options.sAjaxSource) && options.sAjaxSource !== null) {
return new AjaxRenderer(options);
}
return new DefaultRenderer(options);
Expand Down
Loading

0 comments on commit c3f21cb

Please sign in to comment.