ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

Possible typo in api.core function registration

Open iorzetic opened this issue 11 years ago • 1 comments

    /**
     * @ngdoc function
     * @name refreshRows
     * @methodOf ui.grid.core.api:PublicApi
     * @description Runs only the rowProcessors, columns remain as they were.
     * It then calls redrawInPlace and refreshCanvas, which adjust the grid sizing.
     * @returns {promise} promise that is resolved when render completes?
     *
     */
    self.api.registerMethod( 'core', 'refreshRows', this.refreshRows ); <-- correct line

    /**
     * @ngdoc function
     * @name queueRefresh
     * @methodOf ui.grid.core.api:PublicApi
     * @description Requests execution of refreshCanvas, if multiple requests are made
     * during a digest cycle only one will run.  RefreshCanvas updates the grid sizing.
     * @returns {promise} promise that is resolved when render completes?
     *
     */
    self.api.registerMethod( 'core', 'refreshRows', this.queueRefresh ); <-- possible typo in this line (comment is different as well)

iorzetic avatar Jun 08 '15 13:06 iorzetic

Ah, that does look wrong, it should be queueRefresh for the method name.

PaulL1 avatar Jun 08 '15 18:06 PaulL1