Skip to content

Commit

Permalink
mark all properties as cacheable
Browse files Browse the repository at this point in the history
  • Loading branch information
James A. Rosen committed Jan 3, 2013
1 parent 75b958c commit 2df212f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions dist/ember-resource.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ if (typeof this === 'object') this.LRUCache = LRUCache;
}

return deps;
}.property('path'),
}.property('path').cacheable(),

data: function(instance) {
return Ember.get(instance, 'data');
Expand All @@ -446,7 +446,7 @@ if (typeof this === 'object') this.LRUCache = LRUCache;
}
}
return type;
}.property('theType'),
}.property('theType').cacheable(),

propertyFunction: function(name, value) {
var schemaItem = this.constructor.schema[name];
Expand Down Expand Up @@ -766,7 +766,7 @@ if (typeof this === 'object') this.LRUCache = LRUCache;
}
}
return type;
}.property('theItemType')
}.property('theItemType').cacheable()
});
Ember.Resource.HasManySchemaItem.reopenClass({
create: function(name, schema) {
Expand Down Expand Up @@ -1309,7 +1309,7 @@ if (typeof this === 'object') this.LRUCache = LRUCache;

for (var propertyName in schema) {
if (schema.hasOwnProperty(propertyName)) {
properties[propertyName] = schema[propertyName].property();
properties[propertyName] = schema[propertyName].property().cacheable();
}
}

Expand Down
8 changes: 4 additions & 4 deletions src/ember-resource.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
}

return deps;
}.property('path'),
}.property('path').cacheable(),

data: function(instance) {
return Ember.get(instance, 'data');
Expand All @@ -87,7 +87,7 @@
}
}
return type;
}.property('theType'),
}.property('theType').cacheable(),

propertyFunction: function(name, value) {
var schemaItem = this.constructor.schema[name];
Expand Down Expand Up @@ -407,7 +407,7 @@
}
}
return type;
}.property('theItemType')
}.property('theItemType').cacheable()
});
Ember.Resource.HasManySchemaItem.reopenClass({
create: function(name, schema) {
Expand Down Expand Up @@ -950,7 +950,7 @@

for (var propertyName in schema) {
if (schema.hasOwnProperty(propertyName)) {
properties[propertyName] = schema[propertyName].property();
properties[propertyName] = schema[propertyName].property().cacheable();
}
}

Expand Down

0 comments on commit 2df212f

Please sign in to comment.