| Index: ui/file_manager/file_manager/foreground/elements/files_quick_view.js
|
| diff --git a/ui/file_manager/file_manager/foreground/elements/files_quick_view.js b/ui/file_manager/file_manager/foreground/elements/files_quick_view.js
|
| index a3096bbfcce60fb70e11b4df662bb22187c599df..d7099154fb3d8aa7502ed2daa5a600dc32cd7d70 100644
|
| --- a/ui/file_manager/file_manager/foreground/elements/files_quick_view.js
|
| +++ b/ui/file_manager/file_manager/foreground/elements/files_quick_view.js
|
| @@ -51,10 +51,15 @@ var FilesQuickView = Polymer({
|
| this.browsable = false;
|
| },
|
|
|
| + /** @return {boolean} */
|
| + isOpened: function() {
|
| + return this.$.dialog.open;
|
| + },
|
| +
|
| // Opens the dialog.
|
| open: function() {
|
| if (!this.isOpened())
|
| - this.$.dialog.open();
|
| + this.$.dialog.showModal();
|
| },
|
|
|
| // Closes the dialog.
|
| @@ -63,15 +68,6 @@ var FilesQuickView = Polymer({
|
| this.$.dialog.close();
|
| },
|
|
|
| - /**
|
| - * @return {boolean}
|
| - */
|
| - isOpened: function() {
|
| - // TODO(oka): This is a workaround to satisfy closure compiler.
|
| - // Update ['opened'] to .opened.
|
| - return (/** @type{Object} */ (this.$.dialog))['opened'];
|
| - },
|
| -
|
| /**
|
| * @return {!FilesMetadataBox}
|
| */
|
|
|