Skip to content

Instantly share code, notes, and snippets.

View cyclopslabs's full-sized avatar

Paul Williams cyclopslabs

View GitHub Profile
const Application = ((d) => {
const privateVariable = 'Private content'
const __private = {
cache: () => {
this.link = d.querySelector('.link')
},
bind: () => {
this.link.addEventListener('click', this.showContent, false)
var app = app || {};
//object literal
app = {
init: function(){
this.cache();
this.bind();
},
cache: function(){