| OLD | NEW | 
|    1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |    1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 
|    2 // Use of this source code is governed by a BSD-style license that can be |    2 // Use of this source code is governed by a BSD-style license that can be | 
|    3 // found in the LICENSE file. |    3 // found in the LICENSE file. | 
|    4  |    4  | 
|    5 cr.define('options.proxyexceptions', function() { |    5 cr.define('options.proxyexceptions', function() { | 
|    6   const List = cr.ui.List; |    6   const List = cr.ui.List; | 
|    7   const ListItem = cr.ui.ListItem; |    7   const ListItem = cr.ui.ListItem; | 
|    8   const ArrayDataModel = cr.ui.ArrayDataModel; |    8   const ArrayDataModel = cr.ui.ArrayDataModel; | 
|    9  |    9  | 
|   10   /** |   10   /** | 
|   11    * Creates a new exception list. |   11    * Creates a new exception list. | 
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  117     el.__proto__ = ProxyExceptionsItem.prototype; |  117     el.__proto__ = ProxyExceptionsItem.prototype; | 
|  118     el.decorate(); |  118     el.decorate(); | 
|  119   }; |  119   }; | 
|  120  |  120  | 
|  121   ProxyExceptionsItem.prototype = { |  121   ProxyExceptionsItem.prototype = { | 
|  122     __proto__: ListItem.prototype, |  122     __proto__: ListItem.prototype, | 
|  123  |  123  | 
|  124     /** @inheritDoc */ |  124     /** @inheritDoc */ | 
|  125     decorate: function() { |  125     decorate: function() { | 
|  126       ListItem.prototype.decorate.call(this); |  126       ListItem.prototype.decorate.call(this); | 
|  127       console.log('in exceptions decorate'); |  | 
|  128       this.className = 'exception-list-item'; |  127       this.className = 'exception-list-item'; | 
|  129  |  128  | 
|  130       var labelException = this.ownerDocument.createElement('span'); |  129       var labelException = this.ownerDocument.createElement('span'); | 
|  131       labelException.className = ''; |  130       labelException.className = ''; | 
|  132       labelException.textContent = this.exception; |  131       labelException.textContent = this.exception; | 
|  133       this.appendChild(labelException); |  132       this.appendChild(labelException); | 
|  134     } |  133     } | 
|  135   }; |  134   }; | 
|  136  |  135  | 
|  137   return { |  136   return { | 
|  138     ProxyExceptions: ProxyExceptions |  137     ProxyExceptions: ProxyExceptions | 
|  139   }; |  138   }; | 
|  140 }); |  139 }); | 
| OLD | NEW |