Skip to content
Permalink
Browse files

Use 'default' as array key index instead of bare identifier since res…

…erved word
  • Loading branch information...
westonruter committed Feb 15, 2016
1 parent 86c166f commit bdd51c2339bb66fbe94d5ca5a3b3ffcf5be2f0f4
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/wp-admin/js/customize-controls.js
@@ -3610,9 +3610,9 @@
api.previewedDevice = new api.Value();

// Set the default device.
api.bind( 'ready', function () {
api.bind( 'ready', function() {
_.find( api.settings.previewableDevices, function( value, key ) {
if ( true === value.default ) {
if ( true === value['default'] ) {
api.previewedDevice.set( key );
return true;
}

0 comments on commit bdd51c2

Please sign in to comment.
You can’t perform that action at this time.