MDL-43152 JavaScript: Fix linting issues with moodle-theme_bootstrapbase
This commit is contained in:
+6
-12
@@ -271,7 +271,6 @@ Y.BootstrapEngine = BootstrapEngine;
|
||||
|
||||
|
||||
}, '@VERSION@' ,{requires:['node','base-base']});
|
||||
;
|
||||
|
||||
YUI.add('gallery-bootstrap-collapse', function(Y) {
|
||||
|
||||
@@ -301,7 +300,7 @@ However, it can be manually plugged into any node or node list.
|
||||
@class Bootstrap.Collapse
|
||||
**/
|
||||
|
||||
function CollapsePlugin(config) {
|
||||
function CollapsePlugin() {
|
||||
CollapsePlugin.superclass.constructor.apply(this, arguments);
|
||||
}
|
||||
|
||||
@@ -351,9 +350,7 @@ Y.extend(CollapsePlugin, Y.Plugin.Base, {
|
||||
* <code>data-target</code> or <code>href</code> attribute.
|
||||
*/
|
||||
hide: function() {
|
||||
var showClass = this.config.showClass,
|
||||
hideClass = this.config.hideClass,
|
||||
node = this._getTarget();
|
||||
var node = this._getTarget();
|
||||
|
||||
if ( this.transitioning ) {
|
||||
return;
|
||||
@@ -370,9 +367,7 @@ Y.extend(CollapsePlugin, Y.Plugin.Base, {
|
||||
* <code>data-target</code> or <code>href</code> attribute.
|
||||
*/
|
||||
show: function() {
|
||||
var showClass = this.config.showClass,
|
||||
hideClass = this.config.hideClass,
|
||||
node = this._getTarget(),
|
||||
var node = this._getTarget(),
|
||||
host = this._node,
|
||||
self = this,
|
||||
parent,
|
||||
@@ -496,7 +491,7 @@ Y.namespace('Bootstrap').Collapse = CollapsePlugin;
|
||||
|
||||
|
||||
}, '@VERSION@' ,{requires:['plugin','transition','event','event-delegate']});
|
||||
;
|
||||
|
||||
YUI.add('gallery-bootstrap-dropdown', function(Y) {
|
||||
|
||||
/**
|
||||
@@ -526,7 +521,7 @@ It can also be plugged into any node or node list.
|
||||
|
||||
var NS = Y.namespace('Bootstrap');
|
||||
|
||||
function DropdownPlugin(config) {
|
||||
function DropdownPlugin() {
|
||||
DropdownPlugin.superclass.constructor.apply(this, arguments);
|
||||
}
|
||||
|
||||
@@ -555,7 +550,7 @@ Y.extend( DropdownPlugin, Y.Plugin.Base, {
|
||||
className = this.config.className;
|
||||
|
||||
target.toggleClass( className );
|
||||
target.once('clickoutside', function(e) {
|
||||
target.once('clickoutside', function() {
|
||||
target.toggleClass( className );
|
||||
});
|
||||
},
|
||||
@@ -611,7 +606,6 @@ NS.dropdown_delegation = function() {
|
||||
|
||||
|
||||
}, '@VERSION@' ,{requires:['plugin','event','event-outside']});
|
||||
;
|
||||
YUI.add('moodle-theme_bootstrapbase-bootstrap', function (Y, NAME) {
|
||||
|
||||
/**
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+6
-12
@@ -263,7 +263,6 @@ Y.BootstrapEngine = BootstrapEngine;
|
||||
|
||||
|
||||
}, '@VERSION@' ,{requires:['node','base-base']});
|
||||
;
|
||||
|
||||
YUI.add('gallery-bootstrap-collapse', function(Y) {
|
||||
|
||||
@@ -293,7 +292,7 @@ However, it can be manually plugged into any node or node list.
|
||||
@class Bootstrap.Collapse
|
||||
**/
|
||||
|
||||
function CollapsePlugin(config) {
|
||||
function CollapsePlugin() {
|
||||
CollapsePlugin.superclass.constructor.apply(this, arguments);
|
||||
}
|
||||
|
||||
@@ -342,9 +341,7 @@ Y.extend(CollapsePlugin, Y.Plugin.Base, {
|
||||
* <code>data-target</code> or <code>href</code> attribute.
|
||||
*/
|
||||
hide: function() {
|
||||
var showClass = this.config.showClass,
|
||||
hideClass = this.config.hideClass,
|
||||
node = this._getTarget();
|
||||
var node = this._getTarget();
|
||||
|
||||
if ( this.transitioning ) {
|
||||
return;
|
||||
@@ -361,9 +358,7 @@ Y.extend(CollapsePlugin, Y.Plugin.Base, {
|
||||
* <code>data-target</code> or <code>href</code> attribute.
|
||||
*/
|
||||
show: function() {
|
||||
var showClass = this.config.showClass,
|
||||
hideClass = this.config.hideClass,
|
||||
node = this._getTarget(),
|
||||
var node = this._getTarget(),
|
||||
host = this._node,
|
||||
self = this,
|
||||
parent,
|
||||
@@ -486,7 +481,7 @@ Y.namespace('Bootstrap').Collapse = CollapsePlugin;
|
||||
|
||||
|
||||
}, '@VERSION@' ,{requires:['plugin','transition','event','event-delegate']});
|
||||
;
|
||||
|
||||
YUI.add('gallery-bootstrap-dropdown', function(Y) {
|
||||
|
||||
/**
|
||||
@@ -516,7 +511,7 @@ It can also be plugged into any node or node list.
|
||||
|
||||
var NS = Y.namespace('Bootstrap');
|
||||
|
||||
function DropdownPlugin(config) {
|
||||
function DropdownPlugin() {
|
||||
DropdownPlugin.superclass.constructor.apply(this, arguments);
|
||||
}
|
||||
|
||||
@@ -545,7 +540,7 @@ Y.extend( DropdownPlugin, Y.Plugin.Base, {
|
||||
className = this.config.className;
|
||||
|
||||
target.toggleClass( className );
|
||||
target.once('clickoutside', function(e) {
|
||||
target.once('clickoutside', function() {
|
||||
target.toggleClass( className );
|
||||
});
|
||||
},
|
||||
@@ -601,7 +596,6 @@ NS.dropdown_delegation = function() {
|
||||
|
||||
|
||||
}, '@VERSION@' ,{requires:['plugin','event','event-outside']});
|
||||
;
|
||||
YUI.add('moodle-theme_bootstrapbase-bootstrap', function (Y, NAME) {
|
||||
|
||||
/**
|
||||
|
||||
@@ -26,7 +26,7 @@ However, it can be manually plugged into any node or node list.
|
||||
@class Bootstrap.Collapse
|
||||
**/
|
||||
|
||||
function CollapsePlugin(config) {
|
||||
function CollapsePlugin() {
|
||||
CollapsePlugin.superclass.constructor.apply(this, arguments);
|
||||
}
|
||||
|
||||
@@ -76,9 +76,7 @@ Y.extend(CollapsePlugin, Y.Plugin.Base, {
|
||||
* <code>data-target</code> or <code>href</code> attribute.
|
||||
*/
|
||||
hide: function() {
|
||||
var showClass = this.config.showClass,
|
||||
hideClass = this.config.hideClass,
|
||||
node = this._getTarget();
|
||||
var node = this._getTarget();
|
||||
|
||||
if ( this.transitioning ) {
|
||||
return;
|
||||
@@ -95,9 +93,7 @@ Y.extend(CollapsePlugin, Y.Plugin.Base, {
|
||||
* <code>data-target</code> or <code>href</code> attribute.
|
||||
*/
|
||||
show: function() {
|
||||
var showClass = this.config.showClass,
|
||||
hideClass = this.config.hideClass,
|
||||
node = this._getTarget(),
|
||||
var node = this._getTarget(),
|
||||
host = this._node,
|
||||
self = this,
|
||||
parent,
|
||||
@@ -221,4 +217,3 @@ Y.namespace('Bootstrap').Collapse = CollapsePlugin;
|
||||
|
||||
|
||||
}, '@VERSION@' ,{requires:['plugin','transition','event','event-delegate']});
|
||||
;
|
||||
@@ -27,7 +27,7 @@ It can also be plugged into any node or node list.
|
||||
|
||||
var NS = Y.namespace('Bootstrap');
|
||||
|
||||
function DropdownPlugin(config) {
|
||||
function DropdownPlugin() {
|
||||
DropdownPlugin.superclass.constructor.apply(this, arguments);
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ Y.extend( DropdownPlugin, Y.Plugin.Base, {
|
||||
className = this.config.className;
|
||||
|
||||
target.toggleClass( className );
|
||||
target.once('clickoutside', function(e) {
|
||||
target.once('clickoutside', function() {
|
||||
target.toggleClass( className );
|
||||
});
|
||||
},
|
||||
@@ -112,4 +112,3 @@ NS.dropdown_delegation = function() {
|
||||
|
||||
|
||||
}, '@VERSION@' ,{requires:['plugin','event','event-outside']});
|
||||
;
|
||||
|
||||
@@ -271,4 +271,3 @@ Y.BootstrapEngine = BootstrapEngine;
|
||||
|
||||
|
||||
}, '@VERSION@' ,{requires:['node','base-base']});
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user