Check if @attributes already exists, just set it if not exists.
This commit is contained in:
parent
07e5c41092
commit
64bd2ec59d
1 changed files with 2 additions and 1 deletions
|
@ -13,7 +13,8 @@ class App.ControllerForm extends App.Controller
|
|||
@form = @formGen()
|
||||
if !@model
|
||||
@model = {}
|
||||
@attributes = []
|
||||
if !@attributes
|
||||
@attributes = []
|
||||
|
||||
# if element is given, prepend form to it
|
||||
if @el
|
||||
|
|
Loading…
Reference in a new issue