Rename render_object_in_parts to get_object_parts

(imported from commit b040bb60d166a2f904c8d1280fb51693e0d50977)
This commit is contained in:
Steve Howell 2013-07-15 13:42:07 -04:00
parent b4dd0efc74
commit 0a7b5e5b6b
1 changed files with 3 additions and 3 deletions

View File

@ -80,7 +80,7 @@ function describe(operators) {
}).join(', ');
}
function render_object_in_parts(obj) {
function get_object_parts(obj) {
// N.B. action is *not* escaped by the caller
switch (obj.action) {
case 'stream':
@ -110,7 +110,7 @@ function render_object_in_parts(obj) {
}
function render_object(obj) {
var parts = render_object_in_parts(obj);
var parts = get_object_parts(obj);
return parts.prefix + " " + parts.query + " " + parts.suffix;
}
@ -283,7 +283,7 @@ exports.initialize = function () {
return prefix + ' ' + stream;
}
var parts = render_object_in_parts(obj);
var parts = get_object_parts(obj);
parts.query = Handlebars.Utils.escapeExpression(parts.query);
return parts.prefix + " " + parts.query + " " + parts.suffix;
},