Skip to content

Commit

Permalink
Correct Renderer selection (side effect of #37)
Browse files Browse the repository at this point in the history
  • Loading branch information
l-lin committed Aug 1, 2014
1 parent 50d1fa3 commit 13fda8e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/angular-datatables.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@
if (angular.isDefined(options.fnPromise) && options.fnPromise !== null) {
return new PromiseRenderer(options);
}
if (angular.isDefined(options.sAjaxSource) && options.sAjaxSource !== null || options.ajax !== null) {
if (angular.isDefined(options.sAjaxSource) && options.sAjaxSource !== null || angular.isDefined(options.ajax) && options.ajax !== null) {
return new AjaxRenderer(options);
}
return new DefaultRenderer(options);
Expand Down
Loading

0 comments on commit 13fda8e

Please sign in to comment.