Skip to content
Snippets Groups Projects
Commit 67bb5712 authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

make available as OC.Backbone to avoid conflicts

parent cc4a2a47
Branches
No related tags found
No related merge requests found
/*
* Copyright (c) 2015
*
* This file is licensed under the Affero General Public License version 3
* or later.
*
* See the COPYING-README file.
*
*/
if(!_.isUndefined(Backbone)) {
OC.Backbone = Backbone.noConflict();
}
......@@ -455,6 +455,11 @@ class OC_Util {
$path = OC_Util::generatePath($application, 'vendor', $file);
if (!in_array($path, self::$scripts)) {
self::$scripts[] = $path;
if($file === 'backbone/backbone') {
// makes backbone available as OC.Backbone in order to avoid
// conflicts, because apps (like Mail) may bring own versions
OC_Util::addScript('oc-backbone');
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment