Last active
March 23, 2023 18:01
-
-
Save onestepcreative/9984858 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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