Chromium Code Reviews| Index: chrome/browser/resources/net_internals/view.js |
| =================================================================== |
| --- chrome/browser/resources/net_internals/view.js (revision 68021) |
| +++ chrome/browser/resources/net_internals/view.js (working copy) |
| @@ -80,6 +80,8 @@ |
| View.call(this); |
| this.node_ = document.getElementById(divId); |
| + if(!this.node_) |
| + throw new Error("Element " + divId + " not found"); |
|
arv (Not doing code reviews)
2010/12/08 17:55:19
use single quotes
nduca
2010/12/08 19:08:22
Done.
|
| // Initialize the default values to those of the DIV. |
| this.width_ = this.node_.offsetWidth; |