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

DTInstances.getList() giving "cannot get property then of undefined" error #198

Closed
Sawtaytoes opened this issue Jan 28, 2015 · 1 comment
Labels
Milestone

Comments

@Sawtaytoes
Copy link

When I do DTInstances.getList() or DTInstances.getList().then(function(){}), I always get the error that it cannot get .then of undefined. .getLast().then(function(){}) does function properly.

DTInstances.getList() seems to have a bug in 0.4.0 where it is referencing _dtInstances (null) which is never set to anything.

You probably want this at line 457:

if (!_dtInstances) {
    _deferDTInstances = $q.defer();
    _dtInstances = _deferDTInstances.promise;
}
@Sawtaytoes Sawtaytoes changed the title DTInstances.getList() not functioning as designed DTInstances.getList() giving cannot get .then of undefined error Jan 28, 2015
@Sawtaytoes Sawtaytoes changed the title DTInstances.getList() giving cannot get .then of undefined error DTInstances.getList() giving "cannot get .then of undefined" error Jan 28, 2015
@Sawtaytoes Sawtaytoes changed the title DTInstances.getList() giving "cannot get .then of undefined" error DTInstances.getList() giving "cannot get property then of undefined" error Jan 28, 2015
@l-lin l-lin added the bug label Jan 28, 2015
@l-lin
Copy link
Owner

l-lin commented Jan 28, 2015

Yeah, my bad... Fixing it...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants