mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
only set watch on attrs.layoutDisabled when attribute is defined
This commit is contained in:
parent
0453c657da
commit
e62a2c7a6f
1 changed files with 8 additions and 8 deletions
|
@ -103,12 +103,12 @@ define [
|
|||
|
||||
resetOpenStates()
|
||||
onInternalResize()
|
||||
|
||||
scope.$watch attrs.layoutDisabled, (value) ->
|
||||
if value
|
||||
element.layout().hide("east")
|
||||
else
|
||||
element.layout().show("east")
|
||||
|
||||
|
||||
if attrs.layoutDisabled?
|
||||
scope.$watch attrs.layoutDisabled, (value) ->
|
||||
if value
|
||||
element.layout().hide("east")
|
||||
else
|
||||
element.layout().show("east")
|
||||
}
|
||||
]
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue