mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-02 13:49:00 +02:00
only set watch on attrs.layoutDisabled when attribute is defined
This commit is contained in:
@@ -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")
|
||||
}
|
||||
]
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user