Skip to content

Commit e814a07

Browse files
committed
Update JS doc-block. Update pre-set styles class.
1 parent 3633702 commit e814a07

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

assets/js/rd-pagination-styles.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ class RdPaginationStyles {
186186
* @throws Throw the errors if invalid argument.
187187
*/
188188
getOptionsStyle(name) {
189-
if (typeof(name) !== 'string' || name.trim() === '') {
190-
throw new Error('The argument name must be string and not empty.');
189+
if (typeof(name) !== 'string') {
190+
throw new Error('The argument name must be string.');
191191
}
192192
name = name.trim();
193193

assets/js/rd-pagination.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class RdPagination {
125125
* @param {number|false} options.unavailable_before Number of pages to display before first unavailable page. Set number as integer or set to false to not display the pages before unavailable. Default is 2.
126126
*
127127
* @param {object} options.events The events to be called.
128-
* @param {CallableFunction} options.events.onclick On click event. This event is fired after displayed pagination. Set callback function here to call when user clicked. If you set callback function, this class will not use `preventDefault()` to let you handle it.
128+
* @param {function} options.events.onclick On click event. This event is fired after displayed pagination. Set callback function here to call when user clicked. If you set callback function, this class will not use `preventDefault()` to let you handle it.
129129
*/
130130
constructor(selector, options = {}) {
131131
if (typeof(selector) !== 'string') {

0 commit comments

Comments
 (0)