Skip to content
This repository has been archived by the owner on Aug 25, 2018. It is now read-only.

Commit

Permalink
Model variable for _determineAutoSync
Browse files Browse the repository at this point in the history
  • Loading branch information
davideast committed Nov 21, 2014
1 parent 4c8e0c2 commit dbf36ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backbonefire.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
* A utility for resolving whether an item will have the autoSync
* property. Models can have this property on the prototype.
*/
Backbone.Firebase._determineAutoSync = function(self, options) {
var proto = Object.getPrototypeOf(self);
Backbone.Firebase._determineAutoSync = function(model, options) {
var proto = Object.getPrototypeOf(model);
return _.extend(
{
autoSync: proto.hasOwnProperty('autoSync') ? proto.autoSync : true
Expand Down

0 comments on commit dbf36ea

Please sign in to comment.