Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

Commit

Permalink
Revert "AUI-3165 - Source formatting"
Browse files Browse the repository at this point in the history
This reverts commit c7e7b50.
  • Loading branch information
Jonathan Mak committed Mar 26, 2019
1 parent c7e7b50 commit 8e358a5
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/aui-toolbar/js/aui-toolbar.js
Expand Up @@ -342,16 +342,13 @@ ToolbarRenderer.prototype = {
* @param childRenderHints
*/
button: function(childRenderHints) {
var boundingBox,
buttonInstance,
var buttonInstance,
buttonNode,
cssClass,
iconContent,
type,
value = childRenderHints.value;

boundingBox = buttonInstance.get('boundingBox');

type = value.domType || 'button';

if (A.instanceOf(value, A.Button) ||
Expand All @@ -365,12 +362,12 @@ ToolbarRenderer.prototype = {

// Add title support
if (value.title) {
boundingBox.setAttribute('title', value.title);
buttonInstance.get('boundingBox').setAttribute('title', value.title);
}

boundingBox.setAttribute('type', type);
buttonInstance.get('boundingBox').setAttribute('type', type);

return boundingBox;
return buttonInstance.get('boundingBox');
}

// Add node reference support
Expand Down Expand Up @@ -564,4 +561,4 @@ ToolbarRenderer.prototype = {
}
};

A.ToolbarRenderer = ToolbarRenderer;
A.ToolbarRenderer = ToolbarRenderer;

0 comments on commit 8e358a5

Please sign in to comment.