// Copy files out of the assets folder
// This task skips over the "img", "js", and "scss" folders, which are parsed separately
-gulp.task('copy', function(done) {
+gulp.task('copy', function(_done) {
gulp.src(paths.assets)
.pipe(gulp.dest('./dist/assets'));
});
opts = {};
if($el.attr('data-options')){
- var thing = $el.attr('data-options').split(';').forEach(function(e, i){
- var opt = e.split(':').map(function(el){ return el.trim(); });
+ $el.attr('data-options').split(';').forEach(function(option, _index){
+ var opt = option.split(':').map(function(el){ return el.trim(); });
if(opt[0]) opts[opt[0]] = parseValue(opt[1]);
});
}
if (fromString === 'tabs') {
$panels = $panels.children('.'+tabsPanel).removeClass(tabsPanel).removeAttr('role').removeAttr('aria-hidden').removeAttr('aria-labelledby');
$panels.children('a').removeAttr('role').removeAttr('aria-controls').removeAttr('aria-selected');
- }else{
+ } else {
$panels = $liHeads.children('[data-tab-content]').removeClass('accordion-content');
};
$liHeads.addClass('accordion-item').attr('data-accordion-item','');
$liHeadsA.addClass('accordion-title');
});
- }else if (toSet === 'tabs'){
+ } else if (toSet === 'tabs') {
var $tabsContent = $('[data-tabs-content='+_this.$element.attr('id')+']');
var $placeholder = $('#tabs-placeholder-'+_this.$element.attr('id'));
if ($placeholder.length) {
$tabsContent = $('<div class="tabs-content"></div>').insertAfter($placeholder).attr('data-tabs-content',_this.$element.attr('id'));
$placeholder.remove();
- }else{
+ } else {
$tabsContent = $('<div class="tabs-content"></div>').insertAfter(_this.$element).attr('data-tabs-content',_this.$element.attr('id'));
};
$panels.each(function(key,value){
if (hash !== id) {
if (hash !== '') {
$(value).attr('id',hash);
- }else{
+ } else {
hash = id;
$(value).attr('id',hash);
$($liHeadsA.get(key)).attr('href',$($liHeadsA.get(key)).attr('href').replace('#','')+'#'+hash);
* @see Tabs.selectTab
* @function
*/
- open(target) {
+ open(_target) {
if (this.currentRule && typeof this.currentRule.open === 'function') {
return this.currentRule.open(this.currentPlugin, ...arguments);
}
* @see Accordion.up
* @function
*/
- close(target) {
+ close(_target) {
if (this.currentRule && typeof this.currentRule.close === 'function') {
return this.currentRule.close(this.currentPlugin, ...arguments);
}
* @see Accordion.toggle
* @function
*/
- toggle(target) {
+ toggle(_target) {
if (this.currentRule && typeof this.currentRule.toggle === 'function') {
return this.currentRule.toggle(this.currentPlugin, ...arguments);
}