Skip to content

Commit

Permalink
[BUGFIX] Add a check if ember-data exists for isDSManyArray (#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
offirgolan authored Sep 22, 2016
1 parent 2a16dcd commit 64d12bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export function isDsModel(o) {
}

export function isDSManyArray(o) {
return !!(o && isArray(o) && (o instanceof DS.PromiseManyArray || o instanceof DS.ManyArray));
return !!(DS && o && isArray(o) && (o instanceof DS.PromiseManyArray || o instanceof DS.ManyArray));
}

export function isEmberObject(o) {
Expand Down

0 comments on commit 64d12bc

Please sign in to comment.