Changeset 46799
- Timestamp:
- 11/29/2019 04:55:01 PM (5 years ago)
- Location:
- trunk/src/js
- Files:
-
- 27 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/lib/color-picker.js
r43347 r46799 328 328 * @since 3.5.0 329 329 * 330 * @returns {string} The element's color 330 * @returns {string} The element's color. 331 331 */ 332 332 color: function( newColor ) { -
trunk/src/js/_enqueues/wp/customize/controls.js
r46739 r46799 1155 1155 * @param {Boolean} active 1156 1156 * @param {Object} [params] 1157 * @returns {Boolean} false if state already applied1157 * @returns {Boolean} False if state already applied. 1158 1158 */ 1159 1159 _toggleActive: function ( active, params ) { … … 1174 1174 /** 1175 1175 * @param {Object} [params] 1176 * @returns {Boolean} false if already active1176 * @returns {Boolean} False if already active. 1177 1177 */ 1178 1178 activate: function ( params ) { … … 1182 1182 /** 1183 1183 * @param {Object} [params] 1184 * @returns {Boolean} false if already inactive1184 * @returns {Boolean} False if already inactive. 1185 1185 */ 1186 1186 deactivate: function ( params ) { … … 1202 1202 * @param {Object} [params] - Object containing options for expand/collapse. 1203 1203 * @param {Function} [params.completeCallback] - Function to call when expansion/collapse is complete. 1204 * @returns {Boolean} false if state already applied or active state is false1204 * @returns {Boolean} False if state already applied or active state is false. 1205 1205 */ 1206 1206 _toggleExpanded: function( expanded, params ) { … … 1239 1239 /** 1240 1240 * @param {Object} [params] 1241 * @returns {Boolean} false if already expanded or if inactive.1241 * @returns {Boolean} False if already expanded or if inactive. 1242 1242 */ 1243 1243 expand: function ( params ) { … … 1247 1247 /** 1248 1248 * @param {Object} [params] 1249 * @returns {Boolean} false if already collapsed.1249 * @returns {Boolean} False if already collapsed. 1250 1250 */ 1251 1251 collapse: function ( params ) { -
trunk/src/js/_enqueues/wp/customize/nav-menus.js
r46637 r46799 1963 1963 * @param {Boolean} expanded 1964 1964 * @param {Object} [params] 1965 * @returns {Boolean} false if state already applied1965 * @returns {Boolean} False if state already applied. 1966 1966 */ 1967 1967 _toggleExpanded: api.Section.prototype._toggleExpanded, … … 1971 1971 * 1972 1972 * @param {Object} [params] 1973 * @returns {Boolean} false if already expanded1973 * @returns {Boolean} False if already expanded. 1974 1974 */ 1975 1975 expand: api.Section.prototype.expand, … … 1991 1991 * 1992 1992 * @param {Object} [params] 1993 * @returns {Boolean} false if already collapsed1993 * @returns {Boolean} False if already collapsed. 1994 1994 */ 1995 1995 collapse: api.Section.prototype.collapse, -
trunk/src/js/_enqueues/wp/customize/widgets.js
r45658 r46799 1341 1341 * @param {Boolean} expanded 1342 1342 * @param {Object} [params] 1343 * @returns {Boolean} false if state already applied1343 * @returns {Boolean} False if state already applied. 1344 1344 */ 1345 1345 _toggleExpanded: api.Section.prototype._toggleExpanded, … … 1349 1349 * 1350 1350 * @param {Object} [params] 1351 * @returns {Boolean} false if already expanded1351 * @returns {Boolean} False if already expanded. 1352 1352 */ 1353 1353 expand: api.Section.prototype.expand, … … 1366 1366 * 1367 1367 * @param {Object} [params] 1368 * @returns {Boolean} false if already collapsed1368 * @returns {Boolean} False if already collapsed. 1369 1369 */ 1370 1370 collapse: api.Section.prototype.collapse, … … 2061 2061 2062 2062 /** 2063 * @param {string} widgetId or an id_base for adding a previously non-existing widget 2064 * @returns {object|false} widget_form control instance, or false on error 2063 * @param {string} widgetId or an id_base for adding a previously non-existing widget. 2064 * @returns {object|false} widget_form control instance, or false on error. 2065 2065 */ 2066 2066 addWidget: function( widgetId ) { -
trunk/src/js/_enqueues/wp/editor/base.js
r44649 r46799 659 659 * and why this solution was chosen. 660 660 * 661 * @param {Object} editor The editor where we must find the selection 662 * @returns {(null|Object)} The selection range position in the editor 661 * @param {Object} editor The editor where we must find the selection. 662 * @returns {(null|Object)} The selection range position in the editor. 663 663 */ 664 664 function findBookmarkedPosition( editor ) { -
trunk/src/js/_enqueues/wp/media/editor.js
r43582 r46799 22 22 * @param {object} attrs Map of props from a shortcode or settings. 23 23 * @param {string} key The key within the passed map to check for a value. 24 * @returns {mixed|undefined} The original or coerced value of key within attrs 24 * @returns {mixed|undefined} The original or coerced value of key within attrs. 25 25 */ 26 26 wp.media.coerce = function ( attrs, key ) { -
trunk/src/js/media/controllers/region.js
r43309 r46799 78 78 * @fires Region#render 79 79 * 80 * @returns {wp.media.controller.Region} Returns itself to allow chaining 80 * @returns {wp.media.controller.Region} Returns itself to allow chaining. 81 81 */ 82 82 render: function( mode ) { … … 134 134 * @param {Array|Object} views 135 135 * @param {Object} [options={}] 136 * @returns {wp.Backbone.Subviews} Subviews is returned to allow chaining 136 * @returns {wp.Backbone.Subviews} Subviews is returned to allow chaining. 137 137 */ 138 138 set: function( views, options ) { -
trunk/src/js/media/controllers/state-machine.js
r46157 r46799 66 66 * @fires wp.media.controller.State#activate 67 67 * 68 * @returns {wp.media.controller.StateMachine} Returns itself to allow chaining 68 * @returns {wp.media.controller.StateMachine} Returns itself to allow chaining. 69 69 */ 70 70 setState: function( id ) { -
trunk/src/js/media/models/attachments.js
r46239 r46799 173 173 * @param {wp.media.model.Attachment} attachment 174 174 * @param {Object} options 175 * @returns {wp.media.model.Attachments} Returns itself to allow chaining 175 * @returns {wp.media.model.Attachments} Returns itself to allow chaining. 176 176 */ 177 177 validate: function( attachment, options ) { … … 196 196 * @fires wp.media.model.Attachments#reset 197 197 * 198 * @returns {wp.media.model.Attachments} Returns itself to allow chaining 198 * @returns {wp.media.model.Attachments} Returns itself to allow chaining. 199 199 */ 200 200 validateAll: function( attachments, options ) { … … 230 230 * 231 231 * @param {wp.media.model.Attachments} The attachments collection to stop observing. 232 * @returns {wp.media.model.Attachments} Returns itself to allow chaining 232 * @returns {wp.media.model.Attachments} Returns itself to allow chaining. 233 233 */ 234 234 unobserve: function( attachments ) { … … 253 253 * @param {Object} options 254 254 * 255 * @returns {wp.media.model.Attachments} Returns itself to allow chaining 255 * @returns {wp.media.model.Attachments} Returns itself to allow chaining. 256 256 */ 257 257 _validateHandler: function( attachment, attachments, options ) { … … 269 269 * @param {wp.media.model.Attachments} attachments 270 270 * @param {Object} options 271 * @returns {wp.media.model.Attachments} Returns itself to allow chaining 271 * @returns {wp.media.model.Attachments} Returns itself to allow chaining. 272 272 */ 273 273 _validateAllHandler: function( attachments, options ) { … … 279 279 * 280 280 * @param {wp.media.model.Attachments} The attachments collection to mirror. 281 * @returns {wp.media.model.Attachments} Returns itself to allow chaining 281 * @returns {wp.media.model.Attachments} Returns itself to allow chaining. 282 282 */ 283 283 mirror: function( attachments ) { -
trunk/src/js/media/views/attachment-compat.js
r43309 r46799 29 29 }, 30 30 /** 31 * @returns {wp.media.view.AttachmentCompat} Returns itself to allow chaining 31 * @returns {wp.media.view.AttachmentCompat} Returns itself to allow chaining. 32 32 */ 33 33 dispose: function() { … … 41 41 }, 42 42 /** 43 * @returns {wp.media.view.AttachmentCompat} Returns itself to allow chaining 43 * @returns {wp.media.view.AttachmentCompat} Returns itself to allow chaining. 44 44 */ 45 45 render: function() { -
trunk/src/js/media/views/attachment.js
r46157 r46799 70 70 }, 71 71 /** 72 * @returns {wp.media.view.Attachment} Returns itself to allow chaining 72 * @returns {wp.media.view.Attachment} Returns itself to allow chaining. 73 73 */ 74 74 dispose: function() { … … 88 88 }, 89 89 /** 90 * @returns {wp.media.view.Attachment} Returns itself to allow chaining 90 * @returns {wp.media.view.Attachment} Returns itself to allow chaining. 91 91 */ 92 92 render: function() { … … 435 435 /** 436 436 * @param {string} status 437 * @returns {wp.media.view.Attachment} Returns itself to allow chaining 437 * @returns {wp.media.view.Attachment} Returns itself to allow chaining. 438 438 */ 439 439 updateSave: function( status ) { … … 530 530 * @param {Backbone.Model} model 531 531 * @param {string} value 532 * @returns {wp.media.view.Attachment} Returns itself to allow chaining 532 * @returns {wp.media.view.Attachment} Returns itself to allow chaining. 533 533 */ 534 534 /** … … 539 539 * @param {Backbone.Model} model 540 540 * @param {string} value 541 * @returns {wp.media.view.Attachment} Returns itself to allow chaining 541 * @returns {wp.media.view.Attachment} Returns itself to allow chaining. 542 542 */ 543 543 /** … … 548 548 * @param {Backbone.Model} model 549 549 * @param {string} value 550 * @returns {wp.media.view.Attachment} Returns itself to allow chaining 550 * @returns {wp.media.view.Attachment} Returns itself to allow chaining. 551 551 */ 552 552 /** … … 557 557 * @param {Backbone.Model} model 558 558 * @param {string} value 559 * @returns {wp.media.view.Attachment} Returns itself to allow chaining 559 * @returns {wp.media.view.Attachment} Returns itself to allow chaining. 560 560 */ 561 561 Attachment.prototype[ method ] = function( model, value ) { -
trunk/src/js/media/views/attachments/browser.js
r46549 r46799 124 124 125 125 /** 126 * @returns {wp.media.view.AttachmentsBrowser} Returns itself to allow chaining 126 * @returns {wp.media.view.AttachmentsBrowser} Returns itself to allow chaining. 127 127 */ 128 128 dispose: function() { -
trunk/src/js/media/views/button.js
r43309 r46799 48 48 }, 49 49 /** 50 * @returns {wp.media.view.Button} Returns itself to allow chaining 50 * @returns {wp.media.view.Button} Returns itself to allow chaining. 51 51 */ 52 52 render: function() { -
trunk/src/js/media/views/embed/url.js
r45524 r46799 40 40 }, 41 41 /** 42 * @returns {wp.media.view.EmbedUrl} Returns itself to allow chaining 42 * @returns {wp.media.view.EmbedUrl} Returns itself to allow chaining. 43 43 */ 44 44 render: function() { -
trunk/src/js/media/views/frame.js
r43309 r46799 81 81 * Reset all states on the frame to their defaults. 82 82 * 83 * @returns {wp.media.view.Frame} Returns itself to allow chaining 83 * @returns {wp.media.view.Frame} Returns itself to allow chaining. 84 84 */ 85 85 reset: function() { -
trunk/src/js/media/views/iframe.js
r43309 r46799 12 12 className: 'media-iframe', 13 13 /** 14 * @returns {wp.media.view.Iframe} Returns itself to allow chaining 14 * @returns {wp.media.view.Iframe} Returns itself to allow chaining. 15 15 */ 16 16 render: function() { -
trunk/src/js/media/views/media-details.js
r46157 r46799 124 124 125 125 /** 126 * @returns {media.view.MediaDetails} Returns itself to allow chaining 126 * @returns {media.view.MediaDetails} Returns itself to allow chaining. 127 127 */ 128 128 render: function() { -
trunk/src/js/media/views/media-frame.js
r46438 r46799 144 144 145 145 /** 146 * @returns {wp.media.view.MediaFrame} Returns itself to allow chaining 146 * @returns {wp.media.view.MediaFrame} Returns itself to allow chaining. 147 147 */ 148 148 render: function() { … … 317 317 * @instance 318 318 * 319 * @returns {wp.media.view.MediaFrame} Returns itself to allow chaining 319 * @returns {wp.media.view.MediaFrame} Returns itself to allow chaining. 320 320 */ 321 321 /** … … 324 324 * @instance 325 325 * 326 * @returns {wp.media.view.MediaFrame} Returns itself to allow chaining 326 * @returns {wp.media.view.MediaFrame} Returns itself to allow chaining. 327 327 */ 328 328 /** … … 331 331 * @instance 332 332 * 333 * @returns {wp.media.view.MediaFrame} Returns itself to allow chaining 333 * @returns {wp.media.view.MediaFrame} Returns itself to allow chaining. 334 334 */ 335 335 /** … … 338 338 * @instance 339 339 * 340 * @returns {wp.media.view.MediaFrame} Returns itself to allow chaining 340 * @returns {wp.media.view.MediaFrame} Returns itself to allow chaining. 341 341 */ 342 342 /** … … 345 345 * @instance 346 346 * 347 * @returns {wp.media.view.MediaFrame} Returns itself to allow chaining 347 * @returns {wp.media.view.MediaFrame} Returns itself to allow chaining. 348 348 */ 349 349 MediaFrame.prototype[ method ] = function() { -
trunk/src/js/media/views/menu-item.js
r46363 r46799 48 48 49 49 /** 50 * @returns {wp.media.view.MenuItem} returns itself to allow chaining 50 * @returns {wp.media.view.MenuItem} returns itself to allow chaining. 51 51 */ 52 52 render: function() { -
trunk/src/js/media/views/modal.js
r45572 r46799 48 48 49 49 /** 50 * @returns {wp.media.view.Modal} Returns itself to allow chaining 50 * @returns {wp.media.view.Modal} Returns itself to allow chaining. 51 51 */ 52 52 attach: function() { … … 69 69 70 70 /** 71 * @returns {wp.media.view.Modal} Returns itself to allow chaining 71 * @returns {wp.media.view.Modal} Returns itself to allow chaining. 72 72 */ 73 73 detach: function() { … … 82 82 83 83 /** 84 * @returns {wp.media.view.Modal} Returns itself to allow chaining 84 * @returns {wp.media.view.Modal} Returns itself to allow chaining. 85 85 */ 86 86 open: function() { … … 126 126 /** 127 127 * @param {Object} options 128 * @returns {wp.media.view.Modal} Returns itself to allow chaining 128 * @returns {wp.media.view.Modal} Returns itself to allow chaining. 129 129 */ 130 130 close: function( options ) { … … 165 165 }, 166 166 /** 167 * @returns {wp.media.view.Modal} Returns itself to allow chaining 167 * @returns {wp.media.view.Modal} Returns itself to allow chaining. 168 168 */ 169 169 escape: function() { … … 180 180 /** 181 181 * @param {Array|Object} content Views to register to '.media-modal-content' 182 * @returns {wp.media.view.Modal} Returns itself to allow chaining 182 * @returns {wp.media.view.Modal} Returns itself to allow chaining. 183 183 */ 184 184 content: function( content ) { … … 192 192 * 193 193 * @param {string} id 194 * @returns {wp.media.view.Modal} Returns itself to allow chaining 194 * @returns {wp.media.view.Modal} Returns itself to allow chaining. 195 195 */ 196 196 propagate: function( id ) { -
trunk/src/js/media/views/priority-list.js
r43309 r46799 26 26 * @param {wp.media.View|Object} view 27 27 * @param {Object} options 28 * @returns {wp.media.view.PriorityList} Returns itself to allow chaining 28 * @returns {wp.media.view.PriorityList} Returns itself to allow chaining. 29 29 */ 30 30 set: function( id, view, options ) { -
trunk/src/js/media/views/search.js
r46418 r46799 25 25 26 26 /** 27 * @returns {wp.media.view.Search} Returns itself to allow chaining 27 * @returns {wp.media.view.Search} Returns itself to allow chaining. 28 28 */ 29 29 render: function() { -
trunk/src/js/media/views/settings.js
r46748 r46799 32 32 }, 33 33 /** 34 * @returns {wp.media.view.Settings} Returns itself to allow chaining 34 * @returns {wp.media.view.Settings} Returns itself to allow chaining. 35 35 */ 36 36 render: function() { -
trunk/src/js/media/views/settings/attachment-display.js
r45524 r46799 43 43 }, 44 44 /** 45 * @returns {wp.media.view.AttachmentDisplay} Returns itself to allow chaining 45 * @returns {wp.media.view.AttachmentDisplay} Returns itself to allow chaining. 46 46 */ 47 47 render: function() { -
trunk/src/js/media/views/toolbar.js
r43309 r46799 75 75 * @param {Backbone.View|Object} view 76 76 * @param {Object} [options={}] 77 * @returns {wp.media.view.Toolbar} Returns itself to allow chaining 77 * @returns {wp.media.view.Toolbar} Returns itself to allow chaining. 78 78 */ 79 79 set: function( id, view, options ) { … … 117 117 * @param {string} id 118 118 * @param {Object} options 119 * @returns {wp.media.view.Toolbar} Returns itself to allow chaining 119 * @returns {wp.media.view.Toolbar} Returns itself to allow chaining. 120 120 */ 121 121 unset: function( id, options ) { -
trunk/src/js/media/views/uploader/inline.js
r43309 r46799 61 61 }, 62 62 /** 63 * @returns {wp.media.view.UploaderInline} Returns itself to allow chaining 63 * @returns {wp.media.view.UploaderInline} Returns itself to allow chaining. 64 64 */ 65 65 dispose: function() { … … 78 78 }, 79 79 /** 80 * @returns {wp.media.view.UploaderInline} Returns itself to allow chaining 80 * @returns {wp.media.view.UploaderInline} Returns itself to allow chaining. 81 81 */ 82 82 remove: function() { -
trunk/src/js/media/views/view.js
r43309 r46799 29 29 * care of this in Backbone.View now. 30 30 * 31 * @returns {wp.media.View} Returns itself to allow chaining 31 * @returns {wp.media.View} Returns itself to allow chaining. 32 32 */ 33 33 dispose: function() { … … 53 53 }, 54 54 /** 55 * @returns {wp.media.View} Returns itself to allow chaining 55 * @returns {wp.media.View} Returns itself to allow chaining. 56 56 */ 57 57 remove: function() {
Note: See TracChangeset
for help on using the changeset viewer.