Skip to content

Commit

Permalink
refactor: add annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
seonim-ryu committed Jan 12, 2017
1 parent 142b723 commit 1f1580b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion dist/tui-component-pagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ var Pagination = tui.util.defineClass(/**@lends Pagination.prototype */{
/**
* Get current page
* @returns {Number} Current page
* @private
*/
getCurrentPage: function() {
return this._currentPage || this._options.page;
Expand All @@ -207,6 +208,7 @@ var Pagination = tui.util.defineClass(/**@lends Pagination.prototype */{
* Get item index from list
* @param {Number} pageNumber Page number
* @returns {number}
* @private
*/
getIndexOfFirstItem: function(pageNumber) {
return this.getOption('itemPerPage') * (pageNumber - 1) + 1;
Expand Down Expand Up @@ -375,7 +377,7 @@ module.exports = Pagination;
* @constructor View
* @param {Object} options Option object
* @param {Object} $element Container element
*
* @ignore
*/
var View = tui.util.defineClass(/** @lends View.prototype */{
/* eslint-disable complexity */
Expand Down
2 changes: 2 additions & 0 deletions src/js/pagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ var Pagination = tui.util.defineClass(/**@lends Pagination.prototype */{
/**
* Get current page
* @returns {Number} Current page
* @private
*/
getCurrentPage: function() {
return this._currentPage || this._options.page;
Expand All @@ -196,6 +197,7 @@ var Pagination = tui.util.defineClass(/**@lends Pagination.prototype */{
* Get item index from list
* @param {Number} pageNumber Page number
* @returns {number}
* @private
*/
getIndexOfFirstItem: function(pageNumber) {
return this.getOption('itemPerPage') * (pageNumber - 1) + 1;
Expand Down
2 changes: 1 addition & 1 deletion src/js/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @constructor View
* @param {Object} options Option object
* @param {Object} $element Container element
*
* @ignore
*/
var View = tui.util.defineClass(/** @lends View.prototype */{
/* eslint-disable complexity */
Expand Down

0 comments on commit 1f1580b

Please sign in to comment.