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,6 +13,7 @@ class App.ControllerForm extends App.Controller
|
|||
@form = @formGen()
|
||||
if !@model
|
||||
@model = {}
|
||||
if !@attributes
|
||||
@attributes = []
|
||||
|
||||
# if element is given, prepend form to it
|
||||
|
|
Loading…
Reference in a new issue