Total Complexity | 3 |
Complexity/F | 1.5 |
Lines of Code | 54 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | /** |
||
4 | (function (factory) { |
||
5 | if (typeof define === 'function' && define.amd) { |
||
|
|||
6 | // AMD. Register as an anonymous module. |
||
7 | define('bootstrap.wysihtml5.ja-JP', ['jquery', 'bootstrap.wysihtml5'], factory); |
||
8 | } else { |
||
9 | // Browser globals |
||
10 | factory(jQuery); |
||
11 | } |
||
12 | }(function($){ |
||
13 | $.fn.wysihtml5.locale["ja-JP"] = { |
||
14 | font_styles: { |
||
15 | normal: "通常の文字", |
||
16 | h1: "見出し1", |
||
17 | h2: "見出し2", |
||
18 | h3: "見出し3" |
||
19 | }, |
||
20 | emphasis: { |
||
21 | bold: "太字", |
||
22 | italic: "斜体", |
||
23 | underline: "下線" |
||
24 | }, |
||
25 | lists: { |
||
26 | unordered: "点字リスト", |
||
27 | ordered: "数字リスト", |
||
28 | outdent: "左寄せ", |
||
29 | indent: "右寄せ" |
||
30 | }, |
||
31 | link: { |
||
32 | insert: "リンクの挿入", |
||
33 | cancel: "キャンセル" |
||
34 | }, |
||
35 | image: { |
||
36 | insert: "画像の挿入", |
||
37 | cancel: "キャンセル" |
||
38 | }, |
||
39 | html: { |
||
40 | edit: "HTMLを編集" |
||
41 | }, |
||
42 | colours: { |
||
43 | black: "黒色", |
||
44 | silver: "シルバー", |
||
45 | gray: "グレー", |
||
46 | maroon: "栗色", |
||
47 | red: "赤色", |
||
48 | purple: "紫色", |
||
49 | green: "緑色", |
||
50 | olive: "オリーブ", |
||
51 | navy: "ネイビー", |
||
52 | blue: "青色", |
||
53 | orange: "オレンジ" |
||
54 | } |
||
55 | |||
56 | }; |
||
57 | })); |
||
58 |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.