Implement adaptors.

This commit is contained in:
Hyunje Alex Jun
2015-01-26 15:01:07 +00:00
parent 6f5a9088aa
commit ee455fafa5
3 changed files with 25 additions and 9 deletions

11
src/js/adaptor/global.js Normal file
View File

@@ -0,0 +1,11 @@
/* Copyright (c) 2015 Hyunje Alex Jun and other contributors
* Licensed under the MIT License
*/
'use strict';
var ps = require('../plugin/ps');
window.PerfectScrollbar = ps;
if (typeof window.Ps === 'undefined') {
window.Ps = ps;
}

View File

@@ -3,8 +3,8 @@
*/
'use strict';
var ps = require('./plugin/ps')
, psInstances = require('./plugin/instances');
var ps = require('../plugin/ps')
, psInstances = require('../plugin/instances');
$.fn.perfectScrollbar = function (settingOrCommand) {
return this.each(function () {