History

Work around bug where doc list is active but its el has no parent

No idea what's going on :/

Thibaut Courouble committed 10 years ago

Commit f0ed6af1 parent bc0e3261 file · +2 −2Browse files

Unified · Split

assets/javascripts/lib/util.coffee+2−2
@@ -111,9 +111,9 @@ $.after = (el, value) -> · 110 unmodified lines
111 111
112$.remove = (value) ->112$.remove = (value) ->
113 if $.isCollection(value)113 if $.isCollection(value)
114 el.parentElement.removeChild(el) for el in $.makeArray(value)114 el.parentElement?.removeChild(el) for el in $.makeArray(value)
115 else115 else
116 value.parentElement.removeChild(value)116 value.parentElement?.removeChild(value)
117 return117 return
118 118
119$.empty = (el) ->119$.empty = (el) ->