Make WordPress Core


Ignore:
Timestamp:
09/08/2017 06:41:20 PM (8 years ago)
Author:
adamsilverstein
Message:

Docs: JSDoc improvements for namespaces.

Improve JS parsing of our inline JSDocs by introducing @namespace, @lends and @memberOf. Helps set the way for showing our JavaScript documentation on developer.wordpress.org, see https://meta.trac.wordpress.org/ticket/3063.

  • Define all used namespaces using @namespace.
  • Correctly specify in which namespace each class is using @memberOf.
  • Define each usage of the extend function as a prototype assignment using @lends.
  • Some comment blocks were moved to correct the parsing of certain definitions.

Props herregroen, atimmer, netweb, SergeyBiryukov.  
Fixes #41682.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/media/views/toolbar/select.js

    r33337 r41351  
     1var Toolbar = wp.media.view.Toolbar,
     2    l10n = wp.media.view.l10n,
     3    Select;
     4
    15/**
    26 * wp.media.view.Toolbar.Select
     7 *
     8 * @memberOf wp.media.view.Toolbar
    39 *
    410 * @class
     
    814 * @augments Backbone.View
    915 */
    10 var Toolbar = wp.media.view.Toolbar,
    11     l10n = wp.media.view.l10n,
    12     Select;
    13 
    14 Select = Toolbar.extend({
     16Select = Toolbar.extend(/** @lends wp.media.view.Toolbar.Select.prototype */{
    1517    initialize: function() {
    1618        var options = this.options;
Note: See TracChangeset for help on using the changeset viewer.