Skip to content

Instantly share code, notes, and snippets.

@chrisbraddock
Created December 15, 2013 20:04
Show Gist options
  • Save chrisbraddock/7977440 to your computer and use it in GitHub Desktop.
Save chrisbraddock/7977440 to your computer and use it in GitHub Desktop.
(function( skillet, $, undefined ) {
//Private Property
var isHot = true;
//Public Property
skillet.ingredient = "Bacon Strips";
//Public Method
skillet.fry = function() {
var oliveOil;
addItem( "\t\n Butter \n\t" );
addItem( oliveOil );
console.log( "Frying " + skillet.ingredient );
};
//Private Method
function addItem( item ) {
if ( item !== undefined ) {
console.log( "Adding " + $.trim(item) );
}
}
}( window.skillet = window.skillet || {}, jQuery ));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment