Changeset 43142
- Timestamp:
- 05/03/2018 02:47:16 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media-views.js
r43056 r43142 1253 1253 * @memberOf wp.media.controller 1254 1254 * 1255 * @param { object} [attributes] The attributes hash passed to the state.1255 * @param {Object} [attributes] The attributes hash passed to the state. 1256 1256 * @param {string} [attributes.id=gallery-edit] Unique identifier. 1257 1257 * @param {string} [attributes.title=Edit Gallery] Title for the state. Displays in the frame's title region. … … 1296 1296 1297 1297 /** 1298 * Initializes the library. 1299 * 1300 * Creates a selection if a library isn't supplied and creates an attachment 1301 * view if no attachment view is supplied. 1302 * 1298 1303 * @since 3.5.0 1304 * 1305 * @return {void} 1299 1306 */ 1300 1307 initialize: function() { … … 1313 1320 1314 1321 /** 1322 * Activates the library. 1323 * 1324 * Limits the library to images, watches for uploaded attachments. Watches for 1325 * the browse event on the frame and binds it to gallerySettings. 1326 * 1315 1327 * @since 3.5.0 1328 * 1329 * @return {void} 1316 1330 */ 1317 1331 activate: function() { … … 1330 1344 1331 1345 /** 1346 * Deactivates the library. 1347 * 1348 * Stops watching for uploaded attachments and browse events. 1349 * 1332 1350 * @since 3.5.0 1351 * 1352 * @return {void} 1333 1353 */ 1334 1354 deactivate: function() { … … 1342 1362 1343 1363 /** 1364 * Adds the gallery settings to the sidebar and adds a reverse button to the 1365 * toolbar. 1366 * 1344 1367 * @since 3.5.0 1345 1368 * 1346 * @param browser 1369 * @param {wp.media.view.Frame} browser The file browser. 1370 * 1371 * @return {void} 1347 1372 */ 1348 1373 gallerySettings: function( browser ) {
Note: See TracChangeset
for help on using the changeset viewer.