silverstripe-framework/admin/client/src/jQuery.js
Ingo Schommer ee10dbb680 API Moved frontend assets into admin/ "module"
We've removed the ability to directly reference JS and CSS files
for form fields and other SilverStripe features in favour of a common bundle built by Webpack.

The logical next step is to make the framework module free of frontend dependencies,
which should simplify its operation, and avoid another time intensive "npm install" on a module.
2016-09-16 13:46:06 +12:00

9 lines
266 B
JavaScript

/**
* This wraps the global jQuery so jQuery can be imported
* like other modules. Once jQuery is updated and managed
* by npm we can get rid of this wrapper.
*/
var jQuery = typeof window.jQuery !== 'undefined' ? window.jQuery : null;
module.exports = jQuery;