aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/js/workflowengine.js
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-08-31 10:31:12 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-08-31 10:31:12 +0200
commite2d209536f1948b88d981f5c9d4a32db5a28ff9e (patch)
tree5e1e394cc0a30a5cf44597587bc1b5cd3fe4e0e4 /apps/workflowengine/js/workflowengine.js
parent8c9f3a5f5edf785040849cceb601652b24b256bd (diff)
downloadnextcloud-server-e2d209536f1948b88d981f5c9d4a32db5a28ff9e.tar.gz
nextcloud-server-e2d209536f1948b88d981f5c9d4a32db5a28ff9e.zip
Declare OCA.Search directly, not via a monkey patch
Apps could use OCA.Search very early on a page load without a problem prior to Nextcloud 20 (current master). Since the unified search work moved some code around, it now was added later, resulting in `TypeError: OCA.Search is not a constructor` errors if the apps did not wrap their calls in a `DOMLoaded` event handler. To ensure existing code continues to work without modification, this patch moves the declaration of the `OCA.Search` API to where we defined `OCA`, instead of monkey-patching it later on. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/workflowengine/js/workflowengine.js')
0 files changed, 0 insertions, 0 deletions