Skip to content

Commit

Permalink
remove unused store argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanley Stuart committed May 29, 2015
1 parent 58766d1 commit 05ba8f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/ember-data/lib/system/relationships/ext.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,19 +215,19 @@ Model.reopenClass({
@param {String} name the name of the relationship
@return {Object} the inverse relationship, or null
*/
inverseFor: function(name, store) {
inverseFor: function(name) {
var inverseMap = get(this, 'inverseMap');
if (inverseMap[name]) {
return inverseMap[name];
} else {
var inverse = this._findInverseFor(name, store);
var inverse = this._findInverseFor(name);
inverseMap[name] = inverse;
return inverse;
}
},

//Calculate the inverse, ignoring the cache
_findInverseFor: function(name, store) {
_findInverseFor: function(name) {

var inverseType = this.typeForRelationship(name);
if (!inverseType) {
Expand Down

0 comments on commit 05ba8f8

Please sign in to comment.