| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * This file is part of Adblock Plus <https://adblockplus.org/>, | 2  * This file is part of Adblock Plus <https://adblockplus.org/>, | 
| 3  * Copyright (C) 2006-2015 Eyeo GmbH | 3  * Copyright (C) 2006-2015 Eyeo GmbH | 
| 4  * | 4  * | 
| 5  * Adblock Plus is free software: you can redistribute it and/or modify | 5  * Adblock Plus is free software: you can redistribute it and/or modify | 
| 6  * it under the terms of the GNU General Public License version 3 as | 6  * it under the terms of the GNU General Public License version 3 as | 
| 7  * published by the Free Software Foundation. | 7  * published by the Free Software Foundation. | 
| 8  * | 8  * | 
| 9  * Adblock Plus is distributed in the hope that it will be useful, | 9  * Adblock Plus is distributed in the hope that it will be useful, | 
| 10  * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10  * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 357    */ | 357    */ | 
| 358   filter: null, | 358   filter: null, | 
| 359   /** | 359   /** | 
| 360    * String representation of the content type, e.g. "subdocument" | 360    * String representation of the content type, e.g. "subdocument" | 
| 361    * @type String | 361    * @type String | 
| 362    */ | 362    */ | 
| 363   get typeDescr() | 363   get typeDescr() | 
| 364   { | 364   { | 
| 365     return this.type; | 365     return this.type; | 
| 366   }, | 366   }, | 
| 367   /** |  | 
| 368    * User-visible localized representation of the content type, e.g. "frame" |  | 
| 369    * @type String |  | 
| 370    */ |  | 
| 371   get localizedDescr() |  | 
| 372   { |  | 
| 373     return require("contentPolicy").Policy.localizedDescr.get(this.type); |  | 
| 374   }, |  | 
| 375 | 367 | 
| 376   /** | 368   /** | 
| 377    * Attaches this request object to a DOM node. | 369    * Attaches this request object to a DOM node. | 
| 378    */ | 370    */ | 
| 379   attachToNode: function(/**Node*/ node) | 371   attachToNode: function(/**Node*/ node) | 
| 380   { | 372   { | 
| 381     let existingData = getEntry(nodeData, node); | 373     let existingData = getEntry(nodeData, node); | 
| 382     if (typeof existingData == "undefined") | 374     if (typeof existingData == "undefined") | 
| 383     { | 375     { | 
| 384       existingData = {}; | 376       existingData = {}; | 
| 385       setEntry(nodeData, node, existingData); | 377       setEntry(nodeData, node, existingData); | 
| 386     } | 378     } | 
| 387 | 379 | 
| 388     // Add this request to the node data | 380     // Add this request to the node data | 
| 389     existingData[this.type + " " + this.location] = this; | 381     existingData[this.type + " " + this.location] = this; | 
| 390   } | 382   } | 
| 391 }; | 383 }; | 
| OLD | NEW | 
|---|