adobe-photoshop / spaces-design

Adobe Photoshop Design Space
http://adobe-photoshop.github.io/
Other
853 stars 74 forks source link

Do not attempt to dispatch layer-selection-changed events for uninitialized documents #3620

Closed iwehrman closed 8 years ago

iwehrman commented 8 years ago

What it says! This was causing an unrecoverable error when opening the search dialog with an uninitialized document (i.e., one for which document.layers === null).

@shaoshing: can you let me know if this looks like the right fix?

Addresses #3619.

shaoshing commented 8 years ago

This looks perfect! Thanks for fixing the bug.