You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-20Lines changed: 20 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,54 +78,54 @@ See functions list below:
78
78
constbutton=$('#button');
79
79
```
80
80
81
-
-----
81
+
---
82
82
83
83
`$$` - queries the DOM and obtains a collection of elements
84
84
85
85
```javascript
86
86
constbuttons=$$('#button');
87
87
```
88
88
89
-
-----
89
+
---
90
90
91
91
`enableListeners` - enables the custom `on` method for attaching of event listeners
92
92
93
93
```javascript
94
94
enableListeners();
95
95
96
96
button.on('click', () => {
97
-
console.log('clicked a single button');
97
+
console.log('clicked a single button');
98
98
});
99
99
100
100
buttons.on('click', () => {
101
-
console.log('clicked a button in a collection');
101
+
console.log('clicked a button in a collection');
102
102
});
103
103
```
104
104
105
-
-----
105
+
---
106
106
107
107
`isElementVisibleInViewport` - accepts two arguments: DOM element and a boolean flag which states if the element should be partially visible. Returns boolean.
function_nonIterableSpread(){thrownewTypeError("Invalid attempt to spread non-iterable instance");}
25
+
function_nonIterableSpread(){thrownewTypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}
0 commit comments