Skip to content

Commit

Permalink
LPS-63738 - Minimizing property access
Browse files Browse the repository at this point in the history
  • Loading branch information
natecavanaugh authored and brianchandotcom committed Mar 2, 2016
1 parent 402b5db commit 0348c49
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -36,7 +36,7 @@ AUI.add(
_create: function() {
var instance = this;

instance._modal = new Liferay.DDL.FormBuilderModal(
var modal = new Liferay.DDL.FormBuilderModal(
{
after: {
visibleChange: A.bind(instance._afterModalVisibleChange, instance)
Expand All @@ -52,7 +52,7 @@ AUI.add(
}
).render();

instance._modal.addToolbar(
modal.addToolbar(
[
{
cssClass: [CSS_BTN_PRIMARY, CSS_FIELD_SETTINGS_SAVE].join(' '),
Expand All @@ -71,6 +71,8 @@ AUI.add(
],
'footer'
);

instance._modal = modal;
}
}
}
Expand Down

0 comments on commit 0348c49

Please sign in to comment.