Skip to content

Instantly share code, notes, and snippets.

@ui2code
Created November 27, 2014 05:39
Show Gist options
  • Select an option

  • Save ui2code/79e20e9b922eb1c9b8ba to your computer and use it in GitHub Desktop.

Select an option

Save ui2code/79e20e9b922eb1c9b8ba to your computer and use it in GitHub Desktop.
Workflow Javascript
;(function( window, document, undefined ) {
"use strict";
var app = (function() {
var $private = {};
var $public = {};
/**
* Private Variables
*/
$private.privateVar = 'private var';
// -----------------------------------
/**
* Public Variables
*/
$public.publicVar = 'public var';
// -----------------------------------
/**
* Private Methods
*/
$private.privateMethod = function() {
return 'Private method';
};
// -----------------------------------
/**
* Public Methods
*/
$public.publicMethod = function() {
return 'Init';
};
// -----------------------------------
return $public;
})();
// Global
window.app = app;
console.log( window.app );
})( window, document );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment