From 6d636138605ec8c629581388ab06722374f94a25 Mon Sep 17 00:00:00 2001 From: Kevin Schaaf Date: Fri, 14 Apr 2017 15:00:27 -0700 Subject: [PATCH] Remove unused @method --- lib/elements/array-selector.html | 7 ------ lib/elements/dom-module.html | 2 -- lib/elements/dom-repeat.html | 3 --- lib/legacy/legacy-element-mixin.html | 32 ---------------------------- lib/legacy/templatizer-behavior.html | 1 - lib/mixins/element-mixin.html | 1 - lib/mixins/property-accessors.html | 6 ------ lib/mixins/property-effects.html | 9 -------- lib/utils/gestures.html | 1 - lib/utils/import-href.html | 1 - lib/utils/templatize.html | 1 - 11 files changed, 64 deletions(-) diff --git a/lib/elements/array-selector.html b/lib/elements/array-selector.html index 5cf7c3c8be..bff749c6aa 100644 --- a/lib/elements/array-selector.html +++ b/lib/elements/array-selector.html @@ -193,7 +193,6 @@ /** * Clears the selection state. * - * @method clearSelection */ clearSelection() { // Unbind previous selection @@ -211,7 +210,6 @@ /** * Returns whether the item is currently selected. * - * @method isSelected * @param {*} item Item from `items` array to test * @return {boolean} Whether the item is selected */ @@ -222,7 +220,6 @@ /** * Returns whether the item is currently selected. * - * @method isSelected * @param {*} idx Index from `items` array to test * @return {boolean} Whether the item is selected */ @@ -252,7 +249,6 @@ /** * Deselects the given item if it is already selected. * - * @method deselect * @param {*} item Item from `items` array to deselect */ deselect(item) { @@ -275,7 +271,6 @@ /** * Deselects the given index if it is already selected. * - * @method deselect * @param {number} idx Index from `items` array to deselect */ deselectIndex(idx) { @@ -286,7 +281,6 @@ * Selects the given item. When `toggle` is true, this will automatically * deselect the item if already selected. * - * @method select * @param {*} item Item from `items` array to select */ select(item) { @@ -297,7 +291,6 @@ * Selects the given index. When `toggle` is true, this will automatically * deselect the item if already selected. * - * @method select * @param {number} idx Index from `items` array to select */ selectIndex(idx) { diff --git a/lib/elements/dom-module.html b/lib/elements/dom-module.html index 29c0c1ae09..99edb7f109 100644 --- a/lib/elements/dom-module.html +++ b/lib/elements/dom-module.html @@ -56,7 +56,6 @@ /** * Retrieves the element specified by the css `selector` in the module * registered by `id`. For example, this.import('foo', 'img'); - * @method import * @param {string} id The id of the dom-module in which to search. * @param {string=} selector The css selector by which to find the element. * @return {Element} Returns the element which matches `selector` in the @@ -108,7 +107,6 @@ * Registers the dom-module at a given id. This method should only be called * when a dom-module is imperatively created. For * example, `document.createElement('dom-module').register('foo')`. - * @method register * @param {string=} id The id at which to register the dom-module. */ register(id) { diff --git a/lib/elements/dom-repeat.html b/lib/elements/dom-repeat.html index 4a8ac93d84..c791e66634 100644 --- a/lib/elements/dom-repeat.html +++ b/lib/elements/dom-repeat.html @@ -626,7 +626,6 @@ * `modelForElement(el).set('item.', value)` * should be used. * - * @method itemForElement * @param {HTMLElement} el Element for which to return the item. * @return {*} Item associated with the element. */ @@ -640,7 +639,6 @@ * If `sort` is provided, the index will reflect the sorted order (rather * than the original array order). * - * @method indexForElement * @param {HTMLElement} el Element for which to return the index. * @return {*} Row index associated with the element (note this may * not correspond to the array index if a user `sort` is applied). @@ -663,7 +661,6 @@ * model.set('item.checked', true); * } * - * @method modelForElement * @param {HTMLElement} el Element for which to return a template model. * @return {TemplateInstanceBase} Model representing the binding scope for * the element. diff --git a/lib/legacy/legacy-element-mixin.html b/lib/legacy/legacy-element-mixin.html index 2add4236f4..a47de0b5fa 100644 --- a/lib/legacy/legacy-element-mixin.html +++ b/lib/legacy/legacy-element-mixin.html @@ -230,7 +230,6 @@ * Copies own properties (including accessor descriptors) from a source * object to a target object. * - * @method extend * @param {Object} prototype Target object to copy properties to. * @param {Object} api Source object to copy properties from. * @return {Object} prototype object that was passed as first argument. @@ -256,7 +255,6 @@ * properties. To ensure only `ownProperties` are copied from source * to target and that accessor implementations are copied, use `extend`. * - * @method mixin * @param {Object} target Target object to copy properties to. * @param {Object} source Source object to copy properties from. * @return {Object} Target object that was passed as first argument. @@ -292,7 +290,6 @@ * Calls `importNode` on the `content` of the `template` specified and * returns a document fragment containing the imported content. * - * @method instanceTemplate * @param {HTMLTemplateElement} template HTML template element to instance. * @return {DocumentFragment} Document fragment containing the imported * template content. @@ -309,7 +306,6 @@ /** * Dispatches a custom event with an optional detail value. * - * @method fire * @param {string} type Name of event type. * @param {*=} detail Detail value containing event-specific * payload. @@ -337,7 +333,6 @@ * Convenience method to add an event listener on a given element, * late bound to a named method on this element. * - * @method listen * @param {Element} node Element to add event listener to. * @param {string} eventName Name of event to listen for. * @param {string} methodName Name of handler method on `this` to call. @@ -362,7 +357,6 @@ * Convenience method to remove an event listener from a given element, * late bound to a named method on this element. * - * @method unlisten * @param {Element} node Element to remove event listener from. * @param {string} eventName Name of event to stop listening to. * @param {string} methodName Name of handler method on `this` to not call @@ -388,7 +382,6 @@ * - 'y': scroll only in the 'y' direction * - 'none': disable scrolling for this node * - * @method setScrollDirection * @param {string=} direction Direction to allow scrolling * Defaults to `all`. * @param {HTMLElement=} node Element to apply scroll direction setting. @@ -404,7 +397,6 @@ * * This function calls `Polymer.dom(this.root).querySelector(slctr)`. * - * @method $$ * @param {string} slctr Selector to run on this local DOM scope * @return {Element} Element found by the selector, or null if not found. */ @@ -429,7 +421,6 @@ * a user should call `distributeContent` if distribution has been * invalidated due to an element being added or removed from the shadowRoot * that contains an insertion point () inside its subtree. - * @method distributeContent */ distributeContent() { if (window.ShadyDOM && this.shadowRoot) { @@ -443,7 +434,6 @@ * any `` elements are replaced with the list of nodes distributed * to the ``, the result of its `getDistributedNodes` method. * - * @method getEffectiveChildNodes * @return {Array} List of effctive child nodes. */ getEffectiveChildNodes() { @@ -454,7 +444,6 @@ * Returns a list of nodes distributed within this element that match * `selector`. These can be dom children or elements distributed to * children that are insertion points. - * @method queryDistributedElements * @param {string} selector Selector to run. * @return {Array} List of distributed elements that match selector. */ @@ -468,7 +457,6 @@ * any `` elements are replaced with the list of elements * distributed to the ``. * - * @method getEffectiveChildren * @return {Array} List of effctive children. */ getEffectiveChildren() { @@ -483,7 +471,6 @@ * text content's of the element's effective childNodes (the elements * returned by