Skip to content

Commit

Permalink
docs(infinitGrid): add jsdoc of remove method. (#469)
Browse files Browse the repository at this point in the history
docs(infinitGrid): add jsdoc of remove method.

close #461
  • Loading branch information
sculove authored Mar 7, 2017
1 parent 740644f commit 63e19d2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/infiniteGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -792,6 +792,13 @@ eg.module("infiniteGrid", ["jQuery", eg, window, document], function($, ns, glob
height: $el.innerHeight()
};
},
/**
* Removes a card element on a grid layout.
* @ko 그리드 레이아웃의 카드 엘리먼트를 삭제한다.
* @method eg.InfiniteGrid#remove
* @param {HTMLElement} Card element to be removed <ko>삭제될 카드 엘리먼트</ko>
* @return {Object} Removed card element <ko>삭제된 카드 엘리먼트 정보</ko>
*/
remove: function(element) {
var item = null;
var idx = -1;
Expand All @@ -808,8 +815,8 @@ eg.module("infiniteGrid", ["jQuery", eg, window, document], function($, ns, glob

// remove item element
item.el.parentNode.removeChild(item.el);
return item;
}
return item;
},
/**
* Destroys elements, properties, and events used on a grid layout.
Expand Down

0 comments on commit 63e19d2

Please sign in to comment.