Change comment:
Typo
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. mflorea1 +XWiki.kwhitt - Content
-
... ... @@ -26,18 +26,21 @@ 26 26 ))) 27 27 1*. installable as XAR extension but moment.js code is included in the extension sources 28 28 1*. can slow/break the blame view on GitHub 29 -1. copy moment.js in a JSX object((( 29 +1. ((( 30 +copy moment.js in a JSX object((( 30 30 {{code language="none"}} 31 31 $xwiki.jsx.use('Demo.MomentJS') 32 32 {{/code}} 33 33 ))) 34 -1*. the library code is still included in the extension sources 35 -1*. when you upgrade the library version you need to ask your users to clear the browser cache or you need to put the library version in the document name((( 35 + 36 +* the library code is still included in the extension sources 37 +* when you upgrade the library version you need to ask your users to clear the browser cache or you need to put the library version in the document name((( 36 36 {{code language="none"}} 37 37 $xwiki.jsx.use('Demo.MomentJSv2_10_3') 38 38 {{/code}} 39 39 ))) 40 -1*. but then you need to update your code too which is bad because the dependency version should be part of the configuration. 42 +* but then you need to update your code too which is bad because the dependency version should be part of the configuration. 43 +))) 41 41 1. Load moment.js from CDN((( 42 42 {{code language="html"}} 43 43 <script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.10.3/moment.js" ... ... @@ -76,7 +76,7 @@ 76 76 * Script Service((( 77 77 {{code language="html"}} 78 78 <script href="$services.webjars.url('momentjs', 'min/moment.js')" 79 - type="text/javascript" /> 82 + type="text/javascript" ></script> 80 80 {{/code}} 81 81 ))) 82 82 ... ... @@ -102,7 +102,7 @@ 102 102 * RequireJS is a JavaScript file and module loader 103 103 * You can organize your code in **modules** that declare **explicitly** their **dependencies** 104 104 * Modules are loaded / imported asynchronously, with all their transitive dependencies 105 -* This is called *Asynchronous Module Definition* (A DM)108 +* This is called *Asynchronous Module Definition* (AMD) 106 106 * Modules can **export** (publish) APIs (e.g. an object or a function) which are "injected" in your code 107 107 ** Dependency Injection 108 108 ... ... @@ -398,7 +398,7 @@ 398 398 </plugin> 399 399 {{/code}} 400 400 401 -=Related= 404 += Related = 402 402 403 403 {{velocity}} 404 404 #set($tag = 'javascript')