| Left: | ||
| Right: |
| LEFT | RIGHT |
|---|---|
| 1 /* | 1 /* |
| 2 * This Source Code is subject to the terms of the Mozilla Public License | 2 * This Source Code is subject to the terms of the Mozilla Public License |
| 3 * version 2.0 (the "License"). You can obtain a copy of the License at | 3 * version 2.0 (the "License"). You can obtain a copy of the License at |
| 4 * http://mozilla.org/MPL/2.0/. | 4 * http://mozilla.org/MPL/2.0/. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 let {Prefs} = require("prefs"); | 7 let {Prefs} = require("prefs"); |
| 8 | 8 |
| 9 let domainData; | 9 let domainData; |
| 10 let nodeData; | 10 let nodeData; |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 103 else { | 103 else { |
| 104 obj.__defineGetter__(key, function() { | 104 obj.__defineGetter__(key, function() { |
| 105 return orig[key]; | 105 return orig[key]; |
| 106 }); | 106 }); |
| 107 obj.__defineSetter__(key, function(value) { | 107 obj.__defineSetter__(key, function(value) { |
| 108 orig[key] = value; | 108 orig[key] = value; |
| 109 }); | 109 }); |
| 110 } | 110 } |
| 111 } | 111 } |
| 112 | 112 |
| 113 function TreeView_getRowProperties(row) { | 113 function TreeView_getRowProperties(row) { |
|
Wladimir Palant
2014/06/18 17:20:48
Element Hiding Helper currently supports Firefox 2
saroyanm
2014/06/19 07:24:26
Done.
| |
| 114 let property = ""; | 114 let properties = "selected-" + this.selection.isSelected(row); |
| 115 if (!this.selection.isSelected(row)) | |
| 116 property += "selected-false"; | |
|
Wladimir Palant
2014/06/18 17:20:48
Given that we no longer need atoms for all propert
saroyanm
2014/06/19 07:24:26
Good point,
Thanks.
| |
| 117 | 115 |
| 118 var item = this.getItemAtIndex(row); | 116 var item = this.getItemAtIndex(row); |
| 119 if (item && (item.nodeData.expression != "*" || item.nodeData == nodeData)) | 117 if (item && (item.nodeData.expression != "*" || item.nodeData == nodeData)) |
| 120 property += (property ? " anchor" : "anchor"); | 118 properties += " anchor"; |
| 121 | 119 |
| 122 return property; | 120 return properties; |
| 123 } | 121 } |
| 124 | 122 |
| 125 function TreeView_getCellProperties(row, col) { | 123 function TreeView_getCellProperties(row, col) { |
| 126 this.getRowProperties(row); | 124 this.getRowProperties(row); |
| 127 } | 125 } |
| 128 | 126 |
| 129 /********************* | 127 /********************* |
| 130 * General functions * | 128 * General functions * |
| 131 *********************/ | 129 *********************/ |
| 132 | 130 |
| (...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 634 | 632 |
| 635 fillAttributes(item.nodeData); | 633 fillAttributes(item.nodeData); |
| 636 } | 634 } |
| 637 | 635 |
| 638 function addExpression() | 636 function addExpression() |
| 639 { | 637 { |
| 640 AdblockPlus.addPatterns([document.getElementById("expression").value]); | 638 AdblockPlus.addPatterns([document.getElementById("expression").value]); |
| 641 | 639 |
| 642 togglePreview(false); | 640 togglePreview(false); |
| 643 } | 641 } |
| LEFT | RIGHT |