FLUID-2757: Wrap all tutorial code in an anonymous closure to demonstrate how to keep code private

Metadata

Source
FLUID-2757
Type
Bug
Priority
Major
Status
Closed
Resolution
Fixed
Assignee
Anastasia Cheetham
Reporter
Laurel Williams
Created
2009-05-21T13:50:51.000-0400
Updated
2011-03-17T14:48:57.580-0400
Versions
N/A
Fixed Versions
  1. 1.3
Component
  1. Tech. Documentation

Description

Add namespacing anonymous function to tutorial code
(function ($, fluid) {
// code
})(jQuery, fluid);

Environments

all

Comments

  • Anastasia Cheetham commented 2011-01-10T14:17:35.724-0500

    All of our demos (which are the basis for our tutorials now) all use this closure form.