Skip to content

Instantly share code, notes, and snippets.

@rdallaire
Forked from onestepcreative/instance-this.js
Last active August 29, 2015 14:09
Show Gist options
  • Save rdallaire/ebd5d6faaae9664c420e to your computer and use it in GitHub Desktop.
Save rdallaire/ebd5d6faaae9664c420e to your computer and use it in GitHub Desktop.
CrystalCore.libs.backstage = {
name: 'backstage',
version: '2.0.1',
init: function(scope, method, settings) {
var self = this;
$('.backstage-button').on('click', self.events.open);
$('.backstage-surface').on('click', self.events.close);
},
events: {
open: function() {
// Get reference to "this" instance of CrystalCore.libs.backstage
var instance = /* this instance here */;
},
close: function() {
// Get reference to "this" instance of CrystalCore.libs.backstage
var instance = /* this instance here */;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment