I'm having trouble setting a popup template for a feature layer. Based on the documentation I expected to be able define a PopupTemplate object, define the fieldInfos property and leave the content property null resulting in the popup displaying the fieldInfos as a table as documented here:
However, when I do this, the popup appears blanks:

I have to manually set the content property as follows to get the populate:
var popupTemplate = new PopupTemplate(this._config.popupInfo);
popupTemplate.content = [{
type:"fields",
fieldInfos:popupTemplate.fieldInfos
}]
this._featureLayer.outFields = ["*"];
this._featureLayer.popupTemplate = popupTemplate;
return this._featureLayer;

Am I doing something wrong or is the documentation incorrect?