Bug 747270 - Make UtteranceGenerator return string arrays in all generator methods. r=davidb

This commit is contained in:
Eitan Isaacson 2012-04-27 10:44:15 -07:00
parent 1f81710b3c
commit c022602013
2 changed files with 2 additions and 2 deletions

View File

@ -237,7 +237,7 @@ AndroidPresenter.prototype.actionInvoked = function(aObject, aActionName) {
gecko: {
type: 'Accessibility:Event',
eventType: ANDROID_TYPE_VIEW_CLICKED,
text: [UtteranceGenerator.genForAction(aObject, aActionName)]
text: UtteranceGenerator.genForAction(aObject, aActionName)
}
});
};

View File

@ -54,7 +54,7 @@ var UtteranceGenerator = {
},
genForAction: function(aObject, aActionName) {
return gStringBundle.GetStringFromName(this.gActionMap[aActionName]);
return [gStringBundle.GetStringFromName(this.gActionMap[aActionName])];
},
verbosityRoleMap: {