| Index: Source/devtools/front_end/ui/Checkbox.js
|
| diff --git a/Source/devtools/front_end/ui/Checkbox.js b/Source/devtools/front_end/ui/Checkbox.js
|
| index 7802c0954907f2dfb3c515113c85a43cd6d8fadc..07a9fd7d16e20d38833f1dca3ab2c4df64953a1e 100644
|
| --- a/Source/devtools/front_end/ui/Checkbox.js
|
| +++ b/Source/devtools/front_end/ui/Checkbox.js
|
| @@ -31,13 +31,10 @@
|
| */
|
| WebInspector.Checkbox = function(label, className, tooltip)
|
| {
|
| - this.element = document.createElement('label');
|
| - this._inputElement = document.createElement('input');
|
| + this.element = document.createElementWithClass("label", className);
|
| + this._inputElement = this.element.createChild("input");
|
| this._inputElement.type = "checkbox";
|
| -
|
| - this.element.className = className;
|
| - this.element.appendChild(this._inputElement);
|
| - this.element.appendChild(document.createTextNode(label));
|
| + this.element.createTextChild(label);
|
| if (tooltip)
|
| this.element.title = tooltip;
|
| }
|
|
|