|
192 | 192 | * |
193 | 193 | * @param {string} value String to deserialize |
194 | 194 | * @param {*} type Type to deserialize the string to |
| 195 | + * @returns {*} Returns the deserialized value in the `type` given. |
195 | 196 | */ |
196 | 197 | deserialize(value, type) { |
197 | 198 | return this._deserializeValue(value, type); |
|
272 | 273 | * |
273 | 274 | * Note this method is provided as backward-compatible legacy API |
274 | 275 | * only. It is not directly called by any Polymer features. |
275 | | - */ |
276 | | - chainObject(object, inherited) { |
277 | | - if (object && inherited && object !== inherited) { |
278 | | - object.__proto__ = inherited; |
| 276 | + * @param {Object} object The object on which to set the prototype. |
| 277 | + * @param {Object} prototype The prototype that will be set on the given |
| 278 | + * `object`. |
| 279 | + * @returns {Object} Returns the given `object` with its prototype set |
| 280 | + * to the given `prototype` object. |
| 281 | + */ |
| 282 | + chainObject(object, prototype) { |
| 283 | + if (object && prototype && object !== prototype) { |
| 284 | + object.__proto__ = prototype; |
279 | 285 | } |
280 | 286 | return object; |
281 | 287 | } |
|
582 | 588 |
|
583 | 589 | /** |
584 | 590 | * Returns the computed style value for the given property. |
585 | | - * @param {String} property |
586 | | - * @return {String} the computed value |
| 591 | + * @param {String} property The css property name. |
| 592 | + * @returns {String} Returns the computed css property value for the given |
| 593 | + * `property`. |
587 | 594 | */ |
588 | 595 | getComputedStyleValue(property) { |
589 | 596 | return styleInterface.getComputedStyleValue(this, property); |
|
610 | 617 | * context) when the wait time elapses. |
611 | 618 | * @param {number} wait Optional wait time in milliseconds (ms) after the |
612 | 619 | * last signal that must elapse before invoking `callback` |
| 620 | + * @returns {Object} Returns a debouncer object on which exists the |
| 621 | + * following methods: `isActive()` returns true if the debouncer is |
| 622 | + * active; `cancel()` cancels the debouncer if it is active; |
| 623 | + * `flush()` immediately invokes the debounced callback if the debouncer |
| 624 | + * is active. |
613 | 625 | */ |
614 | 626 | debounce(jobName, callback, wait) { |
615 | 627 | this._debouncers = this._debouncers || {}; |
|
0 commit comments