Skip to content

Commit

Permalink
Merge pull request #12600 from rwjblue/guard-attrs-null
Browse files Browse the repository at this point in the history
[BUGFIX beta] Guard against `null` `attrs` in getRoot hook.
  • Loading branch information
rwjblue committed Nov 13, 2015
2 parents 625c27f + f619abb commit 734350e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ember-htmlbars/lib/hooks/get-root.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function getKey(scope, key) {
}

let attrs = scope.getAttrs();
if (key in attrs) {
if (attrs && key in attrs) {
// TODO: attrs
// deprecate("You accessed the `" + key + "` attribute directly. Please use `attrs." + key + "` instead.");
return attrs[key];
Expand Down

0 comments on commit 734350e

Please sign in to comment.