Changeset 41010 for branches/4.8
- Timestamp:
- 07/06/2017 12:45:24 AM (7 years ago)
- Location:
- branches/4.8
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.8
-
branches/4.8/src/wp-includes/js/media-views.js
r40772 r41010 8228 8228 show: function() { 8229 8229 this.$el.removeClass( 'hidden' ); 8230 if ( this.controller.$uploaderToggler .length ) {8230 if ( this.controller.$uploaderToggler && this.controller.$uploaderToggler.length ) { 8231 8231 this.controller.$uploaderToggler.attr( 'aria-expanded', 'true' ); 8232 8232 } … … 8234 8234 hide: function() { 8235 8235 this.$el.addClass( 'hidden' ); 8236 if ( this.controller.$uploaderToggler .length ) {8236 if ( this.controller.$uploaderToggler && this.controller.$uploaderToggler.length ) { 8237 8237 this.controller.$uploaderToggler 8238 8238 .attr( 'aria-expanded', 'false' ) -
branches/4.8/src/wp-includes/js/media/views/uploader/inline.js
r40359 r41010 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.