Access class directly instead of using `this` in the `shortcodeAttrs` method of any factory-generated `wp.media.collection`.

Fixes #27183.


Built from https://develop.svn.wordpress.org/trunk@27238


git-svn-id: http://core.svn.wordpress.org/trunk@27095 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2014-02-24 13:01:14 +00:00
parent ad3861242d
commit 5d15ed5202
2 changed files with 2 additions and 2 deletions

View File

@ -406,7 +406,7 @@
} }
// Remove default attributes from the shortcode. // Remove default attributes from the shortcode.
_.each( this.defaults, function( value, key ) { _.each( wp.media[prop].defaults, function( value, key ) {
if ( value === attrs[ key ] ) { if ( value === attrs[ key ] ) {
delete attrs[ key ]; delete attrs[ key ];
} }

File diff suppressed because one or more lines are too long