mirror of
https://bitbucket.org/bellord13/kit.git
synced 2026-11-13 19:06:11 +03:00
fix
This commit is contained in:
@@ -35,7 +35,7 @@ var __PluginManagerConfigHandler__ = function() {
|
||||
module: '/support.min.js',
|
||||
type: 'HMD',
|
||||
},
|
||||
jqueryProxy: {
|
||||
jQueryProxy: {
|
||||
type: 'HMD',
|
||||
handler: function(require, exports, module, global){
|
||||
init = function(c, prop = '$', args = []){
|
||||
@@ -52,7 +52,7 @@ var __PluginManagerConfigHandler__ = function() {
|
||||
var J = function(){
|
||||
if(!J.init){
|
||||
J.init = true;
|
||||
__PluginManager__.ready('jquery');
|
||||
__PluginManager__.ready('jQuery');
|
||||
}
|
||||
var c = [];
|
||||
J.queue.push(c);
|
||||
@@ -104,17 +104,17 @@ var __PluginManagerConfigHandler__ = function() {
|
||||
module.exports = new JQueryProxy();
|
||||
},
|
||||
},
|
||||
jquery: {
|
||||
jQuery: {
|
||||
path: root + '/jquery',
|
||||
module: '/jquery.min.js',
|
||||
type: 'UMD',
|
||||
alias: ['$', 'jQuery'],
|
||||
alias: ['$', 'jquery'],
|
||||
onRegister: function (plugin) {
|
||||
if(hasJQuery()){
|
||||
plugin.module.exports = window.jQuery;
|
||||
plugin.config.module = '';
|
||||
} else {
|
||||
plugin.proxy = kit.require('jqueryProxy');
|
||||
plugin.proxy = kit.require('jQueryProxy');
|
||||
plugin.proxy.onJQueryRegister(plugin);
|
||||
}
|
||||
},
|
||||
@@ -173,7 +173,6 @@ var __PluginManagerConfigHandler__ = function() {
|
||||
type: 'HMD',
|
||||
css: '/tooltip2.css',
|
||||
onInstall: function (plugin) {
|
||||
console.log('tt2 install');
|
||||
document.addEventListener('mouseover', function (event) {
|
||||
// console.log(event);
|
||||
// console.log(event.target);
|
||||
@@ -370,18 +369,19 @@ var __PluginManagerConfigHandler__ = function() {
|
||||
plugin.module.exports(kit.require('jQuery'));
|
||||
}
|
||||
},
|
||||
jqueryMousewheel: {
|
||||
path: root + '/jqueryMousewheel',
|
||||
alias: 'jquery-mousewheel',
|
||||
js: '/jquery.mousewheel.js',
|
||||
'jQuery.Mousewheel': {
|
||||
path: root + '/jquery/Mousewheel',
|
||||
module: '/jquery.mousewheel.min.js',
|
||||
type: 'UMD',
|
||||
alias: ['jquery-mousewheel', 'jqueryMousewheel'],
|
||||
deps: ['jQuery'],
|
||||
onInstall: function (plugin) {
|
||||
plugin.module.exports(kit.require('jQuery'));
|
||||
}
|
||||
},
|
||||
jqueryLazy: {
|
||||
path: root + '/jquery-lazy',
|
||||
alias: 'jquery-lazy',
|
||||
'jQuery.Lazy': {
|
||||
path: root + '/jquery/Lazy',
|
||||
alias: ['jquery-lazy', 'jqueryLazy'],
|
||||
js: [
|
||||
'/jquery.lazy.min.js',
|
||||
'/jquery.lazy.plugins.min.js',
|
||||
@@ -413,23 +413,24 @@ var __PluginManagerConfigHandler__ = function() {
|
||||
type: 'default',
|
||||
deps: ['jQuery'],
|
||||
},
|
||||
selectric: {
|
||||
path: root + '/selectric',
|
||||
'jQuery.Selectric': {
|
||||
path: root + '/jquery/Selectric',
|
||||
module: '/jquery.selectric.min.js',
|
||||
css: [
|
||||
'/selectric.css',
|
||||
],
|
||||
type: 'UMD',
|
||||
alias: ['jquerySelectric'],
|
||||
alias: ['jquerySelectric', 'selectric'],
|
||||
deps: ['jQuery'],
|
||||
},
|
||||
jBox: {
|
||||
path: root + '/jBox',
|
||||
'jQuery.jBox': {
|
||||
path: root + '/jquery/jBox',
|
||||
module: '/jBox.min.js',
|
||||
css: [
|
||||
'/jBox.min.css',
|
||||
],
|
||||
type: 'UMD',
|
||||
type: 'default',
|
||||
alias: ['jBox'],
|
||||
deps: ['jQuery'],
|
||||
},
|
||||
intlTelInput: {
|
||||
@@ -449,5 +450,18 @@ var __PluginManagerConfigHandler__ = function() {
|
||||
],
|
||||
type: 'HMD',
|
||||
},
|
||||
'jQuery.FlexSlider': {
|
||||
path: root + '/jquery/FlexSlider',
|
||||
module: '',
|
||||
js: [
|
||||
'/jquery.flexslider-min.js',
|
||||
],
|
||||
css: [
|
||||
'/flexslider.css',
|
||||
],
|
||||
alias: ['FlexSlider', 'flexslider'],
|
||||
type: 'default',
|
||||
deps: ['jQuery'],
|
||||
},
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user