1 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,43 +0,0 @@ |
1 |
-import { $, addClass, removeClass, hasClass, toggleClass, attr, removeAttr, transform, transition, on, off, trigger, transitionEnd, outerWidth, outerHeight, styles, offset, css, each, html, text, is, index, eq, append, prepend, next, nextAll, prev, prevAll, parent, parents, closest, find, children, filter, remove } from 'dom7'; |
|
2 |
-var Methods = { |
|
3 |
- addClass: addClass, |
|
4 |
- removeClass: removeClass, |
|
5 |
- hasClass: hasClass, |
|
6 |
- toggleClass: toggleClass, |
|
7 |
- attr: attr, |
|
8 |
- removeAttr: removeAttr, |
|
9 |
- transform: transform, |
|
10 |
- transition: transition, |
|
11 |
- on: on, |
|
12 |
- off: off, |
|
13 |
- trigger: trigger, |
|
14 |
- transitionEnd: transitionEnd, |
|
15 |
- outerWidth: outerWidth, |
|
16 |
- outerHeight: outerHeight, |
|
17 |
- styles: styles, |
|
18 |
- offset: offset, |
|
19 |
- css: css, |
|
20 |
- each: each, |
|
21 |
- html: html, |
|
22 |
- text: text, |
|
23 |
- is: is, |
|
24 |
- index: index, |
|
25 |
- eq: eq, |
|
26 |
- append: append, |
|
27 |
- prepend: prepend, |
|
28 |
- next: next, |
|
29 |
- nextAll: nextAll, |
|
30 |
- prev: prev, |
|
31 |
- prevAll: prevAll, |
|
32 |
- parent: parent, |
|
33 |
- parents: parents, |
|
34 |
- closest: closest, |
|
35 |
- find: find, |
|
36 |
- children: children, |
|
37 |
- filter: filter, |
|
38 |
- remove: remove |
|
39 |
-}; |
|
40 |
-Object.keys(Methods).forEach(function (methodName) { |
|
41 |
- $.fn[methodName] = Methods[methodName]; |
|
42 |
-}); |
|
43 |
-export default $; |
|
44 | 0 |
\ No newline at end of file |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,43 @@ |
1 |
+import { $, addClass, removeClass, hasClass, toggleClass, attr, removeAttr, transform, transition, on, off, trigger, transitionEnd, outerWidth, outerHeight, styles, offset, css, each, html, text, is, index, eq, append, prepend, next, nextAll, prev, prevAll, parent, parents, closest, find, children, filter, remove } from 'dom7'; |
|
2 |
+var Methods = { |
|
3 |
+ addClass: addClass, |
|
4 |
+ removeClass: removeClass, |
|
5 |
+ hasClass: hasClass, |
|
6 |
+ toggleClass: toggleClass, |
|
7 |
+ attr: attr, |
|
8 |
+ removeAttr: removeAttr, |
|
9 |
+ transform: transform, |
|
10 |
+ transition: transition, |
|
11 |
+ on: on, |
|
12 |
+ off: off, |
|
13 |
+ trigger: trigger, |
|
14 |
+ transitionEnd: transitionEnd, |
|
15 |
+ outerWidth: outerWidth, |
|
16 |
+ outerHeight: outerHeight, |
|
17 |
+ styles: styles, |
|
18 |
+ offset: offset, |
|
19 |
+ css: css, |
|
20 |
+ each: each, |
|
21 |
+ html: html, |
|
22 |
+ text: text, |
|
23 |
+ is: is, |
|
24 |
+ index: index, |
|
25 |
+ eq: eq, |
|
26 |
+ append: append, |
|
27 |
+ prepend: prepend, |
|
28 |
+ next: next, |
|
29 |
+ nextAll: nextAll, |
|
30 |
+ prev: prev, |
|
31 |
+ prevAll: prevAll, |
|
32 |
+ parent: parent, |
|
33 |
+ parents: parents, |
|
34 |
+ closest: closest, |
|
35 |
+ find: find, |
|
36 |
+ children: children, |
|
37 |
+ filter: filter, |
|
38 |
+ remove: remove |
|
39 |
+}; |
|
40 |
+Object.keys(Methods).forEach(function (methodName) { |
|
41 |
+ $.fn[methodName] = Methods[methodName]; |
|
42 |
+}); |
|
43 |
+export default $; |
|
0 | 44 |
\ No newline at end of file |