Skip to content

Commit 5c8bc27

Browse files
committed
Merge pull request #273 from kentcdodds/v2
Bug fix, referencing _this instead of global DS.
2 parents 56789c2 + 91b202b commit 5c8bc27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
var _this = this;
150150

151151
id = DSUtils.resolveId(_this.definitions[resourceName], id);
152-
if (!DS.definitions[resourceName]) {
152+
if (!_this.definitions[resourceName]) {
153153
throw new DSErrors.NER(resourceName);
154154
} else if (!DSUtils.isString(id) && !DSUtils.isNumber(id)) {
155155
throw new DSErrors.IA('"id" must be a string or a number!');

0 commit comments

Comments
 (0)