Changeset 22762
- Timestamp:
- 11/21/2012 02:32:52 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/media-views.js
r22750 r22762 558 558 559 559 image.onload = function() { 560 if ( state === frame.state() && url === state.get('url') ) 561 state.set( 'type', 'image' ); 560 if ( state !== frame.state() || url !== state.get('url') ) 561 return; 562 563 state.set({ 564 type: 'image', 565 width: image.width, 566 height: image.height 567 }); 562 568 }; 563 569
Note: See TracChangeset
for help on using the changeset viewer.