Skip to content
Browse files

Use 'in' notation for 'cacheFor'

  • Loading branch information...
1 parent d5e659b commit 7d9806c61cff47a59b8ba17f19d334a889b2870d @wagenet wagenet committed May 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 packages/ember-metal/lib/computed.js
View
2 packages/ember-metal/lib/computed.js
@@ -376,7 +376,7 @@ Ember.computed = function(func) {
Ember.cacheFor = function(obj, key) {
var cache = meta(obj, false).cache;
- if (cache && cache[key] !== undefined) {
+ if (cache && key in cache) {
return cache[key];
}
};

0 comments on commit 7d9806c

Please sign in to comment.
Something went wrong with that request. Please try again.