Last modified by Vincent Massol on 2023/10/10

<
From version < 3.5 >
edited by Ecaterina Moraru (Valica)
on 2017/09/06
To version < 3.6 >
edited by Vincent Massol
on 2018/09/21
>
Change comment: syntax typos

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.evalica
1 +XWiki.VincentMassol
Content
... ... @@ -24,22 +24,20 @@
24 24   type="text/javascript"></script>
25 25  {{/code}}
26 26  )))
27 -1*. \\
28 -1**. installable as XAR extension but moment.js code is included in the extension sources
29 -1**. can slow/break the blame view on GitHub
27 +1*. installable as XAR extension but moment.js code is included in the extension sources
28 +1*. can slow/break the blame view on GitHub
30 30  1. copy moment.js in a JSX object(((
31 31  {{code language="none"}}
32 32  $xwiki.jsx.use('Demo.MomentJS')
33 33  {{/code}}
34 34  )))
35 -1*. \\
36 -1**. the library code is still included in the extension sources
37 -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(((
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(((
38 38  {{code language="none"}}
39 39  $xwiki.jsx.use('Demo.MomentJSv2_10_3')
40 40  {{/code}}
41 41  )))
42 -1***. but then you need to update your code too which is bad because the dependency version should be part of the configuration.
40 +1*. but then you need to update your code too which is bad because the dependency version should be part of the configuration.
43 43  1. Load moment.js from CDN(((
44 44  {{code language="html"}}
45 45  <script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.10.3/moment.js"

Get Connected