Skip to content


Please refer to the airbnb style guide for styling standards, in particular:

Immediately-invoked function expressions (IIFE)

  1. MUST NOT be used for CommonJS exporting modules (built with Browserify).
  2. MUST be used in inline scripts and non Browserify compiled JS to avoid populating the global scope.

Example of usage in non CommonJS modules

(function($) {
    // Defined as long as global jQuery object is available

// Undefined