Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemath
GitHub Repository: sagemath/sagecell
Path: blob/master/js/jquery-global.js
447 views
1
import _jquery from "jquery";
2
3
// Some users depend on jQuery being globally set by sage_cell.
4
// We take care to initialize the jQuery global variable only if
5
// another jQuery is not set.
6
window.jQuery = window.jQuery || window.$ || _jquery;
7
window.$ = window.$ || window.jQuery || _jquery;
8
9