| Index: ui/file_manager/gallery/js/image_editor/image_editor.js
|
| diff --git a/ui/file_manager/gallery/js/image_editor/image_editor.js b/ui/file_manager/gallery/js/image_editor/image_editor.js
|
| index faef0d950bf048998c0afa57fd3be6a2ec261b8d..b85832fb5675e1d571e9854eeae692f74bf9c1ef 100644
|
| --- a/ui/file_manager/gallery/js/image_editor/image_editor.js
|
| +++ b/ui/file_manager/gallery/js/image_editor/image_editor.js
|
| @@ -901,6 +901,13 @@ ImageEditor.Toolbar = function(parent, displayStringFunction, updateCallback) {
|
| this.wrapper_ = parent;
|
| this.displayStringFunction_ = displayStringFunction;
|
| this.updateCallback_ = updateCallback;
|
| + Object.seal(this);
|
| +};
|
| +
|
| +ImageEditor.Toolbar.prototype = {
|
| + get element() {
|
| + return this.wrapper_;
|
| + }
|
| };
|
|
|
| /**
|
| @@ -953,7 +960,8 @@ ImageEditor.Toolbar.prototype.addLabel = function(name) {
|
| ImageEditor.Toolbar.prototype.addButton = function(
|
| name, title, handler, opt_class) {
|
| var button = this.create_('button');
|
| - if (opt_class) button.classList.add(opt_class);
|
| + if (opt_class)
|
| + button.classList.add(opt_class);
|
| var label = this.create_('span');
|
| label.textContent = this.displayStringFunction_(title);
|
| button.appendChild(label);
|
|
|