Skip to content

Commit

Permalink
don’t > on undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanpenner committed Jul 30, 2014
1 parent 20d7491 commit 77adcc5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/ember-metal/lib/properties.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ export function defineProperty(obj, keyName, desc, data, meta) {
if (!meta) meta = metaFor(obj);
descs = meta.descs;
existingDesc = meta.descs[keyName];
watching = meta.watching[keyName] > 0;
var watchEntry = meta.watching[keyName];

watching = watchEntry !== undefined && watchEntry > 0;

if (existingDesc instanceof Descriptor) {
existingDesc.teardown(obj, keyName);
Expand Down

0 comments on commit 77adcc5

Please sign in to comment.