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

Unified Diff: chrome/content/composer.js

Issue 5728222025089024: Issue #447: EHH - TypeError: properties is undefined in composer.js (Closed)
Patch Set: Created June 18, 2014, 4:01 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/content/composer.js
===================================================================
--- a/chrome/content/composer.js
+++ b/chrome/content/composer.js
@@ -110,21 +110,20 @@
}
}
-var atomService = Cc["@mozilla.org/atom-service;1"].getService(Ci.nsIAtomService);
-var selectedAtom = atomService.getAtom("selected-false");
-var anchorAtom = atomService.getAtom("anchor");
-
-function TreeView_getRowProperties(row, properties) {
+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.
+ let property = "";
if (!this.selection.isSelected(row))
- properties.AppendElement(selectedAtom);
+ 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.
var item = this.getItemAtIndex(row);
if (item && (item.nodeData.expression != "*" || item.nodeData == nodeData))
- properties.AppendElement(anchorAtom);
+ property += (property ? " anchor" : "anchor");
+
+ return property;
}
-function TreeView_getCellProperties(row, col, properties) {
- this.getRowProperties(row, properties);
+function TreeView_getCellProperties(row, col) {
+ this.getRowProperties(row);
}
/*********************
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld