From: Geoff Kimball Date: Thu, 19 Nov 2015 18:32:45 +0000 (-0800) Subject: Remove UMD references from docs X-Git-Tag: v6.0.1~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11a2bcac42e716866fc4206b1ca3fc811bff727f;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Remove UMD references from docs --- diff --git a/docs/layout/component.html b/docs/layout/component.html index 105eba18e..78250428a 100644 --- a/docs/layout/component.html +++ b/docs/layout/component.html @@ -180,20 +180,6 @@ {{/each}}{{/if}} -

To import as an AMD module (for use with RequireJS):

- -
define(['{{memberof}}.{{name}}'], function({{name}}) {
-});
- -

To import as a CommonJS module (for use with Browserify or Webpack):

- -
var {{name}} = require('{{memberof}}.{{name}}');
- -

Note that when importing plugins with module loaders, the plugins are not initialized by default. They must be manually registered with Foundation, like this:

- -
var {{name}} = require('{{memberof}}.{{name}}');
-
-Foundation.plugin({{name}});
{{/with}}{{/if}} diff --git a/docs/pages/javascript.md b/docs/pages/javascript.md index fd62b0476..ca2c4c875 100644 --- a/docs/pages/javascript.md +++ b/docs/pages/javascript.md @@ -145,9 +145,3 @@ Refer to each plugin's documentation to see a list of events it fires, and when

Starting with Foundation 6, we removed callbacks as plugin settings. All use of callbacks with plugins should be done as event listeners.

- ---- - -## Module Loader Support - -