Integrate perfect-scrollbar to make tests happy
This commit is contained in:
parent
05cac4c186
commit
6d47324342
39 changed files with 5022 additions and 36 deletions
14
library/perfect-scrollbar/src/js/adaptor/global.js
Normal file
14
library/perfect-scrollbar/src/js/adaptor/global.js
Normal file
|
@ -0,0 +1,14 @@
|
|||
'use strict';
|
||||
|
||||
var ps = require('../main');
|
||||
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD
|
||||
define(ps);
|
||||
} else {
|
||||
// Add to a global object.
|
||||
window.PerfectScrollbar = ps;
|
||||
if (typeof window.Ps === 'undefined') {
|
||||
window.Ps = ps;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue