Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: lib/filterClasses.js

Issue 5964611362750464: Issue 2233 - Adapted array type annotations for JsDoc 3 (Closed)
Patch Set: Re-added removed argument name Created March 30, 2015, 10:51 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | lib/filterNotifier.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 26 matching lines...) Expand all
37 Filter.prototype = 37 Filter.prototype =
38 { 38 {
39 /** 39 /**
40 * String representation of the filter 40 * String representation of the filter
41 * @type String 41 * @type String
42 */ 42 */
43 text: null, 43 text: null,
44 44
45 /** 45 /**
46 * Filter subscriptions the filter belongs to 46 * Filter subscriptions the filter belongs to
47 * @type Array of Subscription 47 * @type Subscription[]
48 */ 48 */
49 subscriptions: null, 49 subscriptions: null,
50 50
51 /** 51 /**
52 * Serializes the filter to an array of strings for writing out on the disk. 52 * Serializes the filter to an array of strings for writing out on the disk.
53 * @param {Array of String} buffer buffer to push the serialization results i nto 53 * @param {string[]} buffer buffer to push the serialization results into
54 */ 54 */
55 serialize: function(buffer) 55 serialize: function(buffer)
56 { 56 {
57 buffer.push("[Filter]"); 57 buffer.push("[Filter]");
58 buffer.push("text=" + this.text); 58 buffer.push("text=" + this.text);
59 }, 59 },
60 60
61 toString: function() 61 toString: function()
62 { 62 {
63 return this.text; 63 return this.text;
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 381
382 this.domainSource = null; 382 this.domainSource = null;
383 } 383 }
384 384
385 Object.defineProperty(this, "domains", {value: domains, enumerable: true}); 385 Object.defineProperty(this, "domains", {value: domains, enumerable: true});
386 return this.domains; 386 return this.domains;
387 }, 387 },
388 388
389 /** 389 /**
390 * Array containing public keys of websites that this filter should apply to 390 * Array containing public keys of websites that this filter should apply to
391 * @type Array of String 391 * @type string[]
392 */ 392 */
393 sitekeys: null, 393 sitekeys: null,
394 394
395 /** 395 /**
396 * Checks whether this filter is active on a domain. 396 * Checks whether this filter is active on a domain.
397 * @param {String} docDomain domain name of the document that loads the URL 397 * @param {String} docDomain domain name of the document that loads the URL
398 * @param {String} [sitekey] public key provided by the document 398 * @param {String} [sitekey] public key provided by the document
399 * @return {Boolean} true in case of the filter being active 399 * @return {Boolean} true in case of the filter being active
400 */ 400 */
401 isActiveOnDomain: function(docDomain, sitekey) 401 isActiveOnDomain: function(docDomain, sitekey)
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 thirdParty: null, 578 thirdParty: null,
579 579
580 /** 580 /**
581 * String that the sitekey property should be generated from 581 * String that the sitekey property should be generated from
582 * @type String 582 * @type String
583 */ 583 */
584 sitekeySource: null, 584 sitekeySource: null,
585 585
586 /** 586 /**
587 * Array containing public keys of websites that this filter should apply to 587 * Array containing public keys of websites that this filter should apply to
588 * @type Array of String 588 * @type string[]
589 */ 589 */
590 get sitekeys() 590 get sitekeys()
591 { 591 {
592 // Despite this property being cached, the getter is called 592 // Despite this property being cached, the getter is called
593 // several times on Safari, due to WebKit bug 132872 593 // several times on Safari, due to WebKit bug 132872
594 let prop = Object.getOwnPropertyDescriptor(this, "sitekeys"); 594 let prop = Object.getOwnPropertyDescriptor(this, "sitekeys");
595 if (prop) 595 if (prop)
596 return prop.value; 596 return prop.value;
597 597
598 let sitekeys = null; 598 let sitekeys = null;
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
939 function ElemHideException(text, domains, selector) 939 function ElemHideException(text, domains, selector)
940 { 940 {
941 ElemHideBase.call(this, text, domains, selector); 941 ElemHideBase.call(this, text, domains, selector);
942 } 942 }
943 exports.ElemHideException = ElemHideException; 943 exports.ElemHideException = ElemHideException;
944 944
945 ElemHideException.prototype = 945 ElemHideException.prototype =
946 { 946 {
947 __proto__: ElemHideBase.prototype 947 __proto__: ElemHideBase.prototype
948 }; 948 };
OLDNEW
« no previous file with comments | « no previous file | lib/filterNotifier.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld