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

Commit bcfa841

Browse files
committed
Error on DTInstances.getList() #198
1 parent 4aaadbe commit bcfa841

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

dist/angular-datatables.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,10 @@ function dtInstances($q) {
454454

455455
function getList() {
456456
var defer = $q.defer();
457+
if (!_dtInstances) {
458+
_deferDTInstances = $q.defer();
459+
_dtInstances = _deferDTInstances.promise;
460+
}
457461
_dtInstances.then(function(instances) {
458462
defer.resolve(instances);
459463
// Reset the promise

0 commit comments

Comments
 (0)