Skip to content

Commit 66587a8

Browse files
author
p01
committed
Minor clean up and comments
1 parent 7050e2d commit 66587a8

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/resource-manager/resource_detail_view.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ cls.ResourceDetailView = function(id, name, container_class, html, default_handl
9191
}
9292
}
9393

94-
if ((c == CR) && (value.charAt(pos+1) == LF))
94+
if ((c == CR) && (value.charAt(pos + 1) == LF))
9595
pos++;
9696
}
9797
}
@@ -157,12 +157,9 @@ cls.ResourceDetailView = function(id, name, container_class, html, default_handl
157157
};
158158

159159
/*
160-
* the "key" can be either:
161-
* * an instance of cls.ResourceInfo
162-
* * the UID of a cls.ResourceInfo
163-
* * a URL
160+
* The "key" can be URL, the UID of or an instance of cls.ResourceInfo
164161
*
165-
* That way it's easier for the other services to get a resource shown regardless of its "form".
162+
* This flexibility helps other services to display a resource regardless of its "form".
166163
*/
167164
this.show_resource = function(key, data)
168165
{

src/resource-manager/resource_templates.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ window.templates.resource_tree || (window.templates.resource_tree = new function
179179
);
180180

181181
if (!extras.collapsed)
182-
this.resources(context, resources, depth+1);
182+
this.resources(context, resources, depth + 1);
183183
};
184184

185185
this.resources = function(context, resources, depth)

0 commit comments

Comments
 (0)