質問編集履歴
2
誤字修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -28,7 +28,7 @@
|
|
28
28
|
|
29
29
|
// function(option) からアロー関数へ変更
|
30
30
|
|
31
|
-
$.fn.s
|
31
|
+
$.fn.testFunction = ( option ) => {
|
32
32
|
|
33
33
|
|
34
34
|
|
1
誤字修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
### 経緯
|
2
2
|
|
3
|
-
利用していたjQueryのプラグインをES6の記述で
|
3
|
+
利用していたjQueryのプラグインをES6の記述で修正。thisの参照先の違いによりエラーが起きてしまいました。
|
4
4
|
|
5
5
|
|
6
6
|
|
@@ -32,7 +32,7 @@
|
|
32
32
|
|
33
33
|
|
34
34
|
|
35
|
-
|
35
|
+
const defaults = $.extend({
|
36
36
|
|
37
37
|
param1 : '',
|
38
38
|
|
@@ -44,7 +44,7 @@
|
|
44
44
|
|
45
45
|
// 参照先が違う
|
46
46
|
|
47
|
-
|
47
|
+
let self = $(this);
|
48
48
|
|
49
49
|
|
50
50
|
|