Skip to content

Commit 5a7649f

Browse files
author
Chris K
committed
Simplified code.
1 parent c152dd2 commit 5a7649f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/ui-scripts/cells.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -292,10 +292,9 @@
292292
{
293293
["tabs", "tabbar"].forEach(function(prop)
294294
{
295-
if (rough_cell["get_" + prop] && typeof rough_cell["get_" + prop] == "function")
296-
{
297-
rough_cell[prop] = rough_cell["get_" + prop](services);
298-
}
295+
var getter = rough_cell["get_" + prop];
296+
if (typeof getter == "function")
297+
rough_cell[prop] = getter(services);
299298
});
300299

301300
this.appendUiNodes(rough_cell.tabbar);

0 commit comments

Comments
 (0)