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

Delta Between Two Patch Sets: chrome/content/composer.js

Issue 5728222025089024: Issue #447: EHH - TypeError: properties is undefined in composer.js (Closed)
Left Patch Set: Created June 18, 2014, 4:01 p.m.
Right Patch Set: Support and implementation changes Created June 19, 2014, 7:14 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | metadata.gecko » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
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
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
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 }
LEFTRIGHT
« no previous file | metadata.gecko » ('j') | Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Toggle Comments ('s')

Powered by Google App Engine
This is Rietveld