Changeset 41009
- Timestamp:
- 07/06/2017 12:40:59 AM (7 years ago)
- Location:
- trunk/src/wp-includes/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media-views.js
r40902 r41009 8229 8229 show: function() { 8230 8230 this.$el.removeClass( 'hidden' ); 8231 if ( this.controller.$uploaderToggler .length ) {8231 if ( this.controller.$uploaderToggler && this.controller.$uploaderToggler.length ) { 8232 8232 this.controller.$uploaderToggler.attr( 'aria-expanded', 'true' ); 8233 8233 } … … 8235 8235 hide: function() { 8236 8236 this.$el.addClass( 'hidden' ); 8237 if ( this.controller.$uploaderToggler .length ) {8237 if ( this.controller.$uploaderToggler && this.controller.$uploaderToggler.length ) { 8238 8238 this.controller.$uploaderToggler 8239 8239 .attr( 'aria-expanded', 'false' ) -
trunk/src/wp-includes/js/media/views/uploader/inline.js
r40359 r41009 120 120 show: function() { 121 121 this.$el.removeClass( 'hidden' ); 122 if ( this.controller.$uploaderToggler .length ) {122 if ( this.controller.$uploaderToggler && this.controller.$uploaderToggler.length ) { 123 123 this.controller.$uploaderToggler.attr( 'aria-expanded', 'true' ); 124 124 } … … 126 126 hide: function() { 127 127 this.$el.addClass( 'hidden' ); 128 if ( this.controller.$uploaderToggler .length ) {128 if ( this.controller.$uploaderToggler && this.controller.$uploaderToggler.length ) { 129 129 this.controller.$uploaderToggler 130 130 .attr( 'aria-expanded', 'false' )
Note: See TracChangeset
for help on using the changeset viewer.