Created
October 20, 2015 17:41
-
-
Save rmyers/3557ab252dac9be369b4 to your computer and use it in GitHub Desktop.
Ha Replica detach
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ck.data.database.Instance.prototype.detach = function () { | |
var haGroup; | |
if (this.isHaGroupMember()) { | |
haGroup = new ck.data.database.HaGroup({id: this.get('ha_id')}); | |
haGroup.setProvider(this.getProvider()); | |
haGroup.detach(this.id()); | |
} else { | |
this.getStore().detach(this.id()); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment