Closed kanedafromparis closed 9 years ago
Don't you think that toggle should switch the opened variable ? Therefore the function should be
... toggle: function() { if (this.$.opened){this.$.opened=false;}else{this.$.opened=true;}; this.$.overlay.toggle(); }, ....
The opened property in paper-dialog is bound to the same property in core-overlay, so it's unnecessary to set it explicitly in toggle.
opened
paper-dialog
core-overlay
toggle
Don't you think that toggle should switch the opened variable ? Therefore the function should be