Skip to content
This repository has been archived by the owner on Apr 4, 2018. It is now read-only.

Commit

Permalink
Using multiple classes now.
Browse files Browse the repository at this point in the history
  • Loading branch information
deleteme committed Sep 9, 2009
1 parent 576b6d8 commit 6b0db65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions javascripts/accordion.js
Expand Up @@ -17,7 +17,7 @@ var CanFireEvents = Class.create({
this.name = name;
},
fireEvent: function (state, memo) {
console.log(this.name + ':' + state, memo);
//console.log(this.name + ':' + state, memo);
document.fire(this.name + ':' + state, memo);
}
});
Expand Down Expand Up @@ -60,7 +60,6 @@ var Accordion = Class.create(CanBeDisabled, {
disabled: false
}, options || {});

console.log(this.options.disabled);
$super(this.id, this.root, this.options.disabled);

this.accordionEffectOptions = $H({
Expand Down Expand Up @@ -162,6 +161,7 @@ var AccordionSection = Class.create(CanBeDisabled, {
title: accordion.elements.titles[i],
toggle: accordion.elements.toggles[i]
};
$super(this.accordion.id + 'Section', this.elements.section);
this.elements.toggle.setStyle({ height: this.elements.toggle.getHeight() + 'px' }).hide();
this.visible = false;
},
Expand All @@ -180,6 +180,6 @@ var AccordionSection = Class.create(CanBeDisabled, {
this.fireEvent('shown');
},
fireEvent: function($super, state){
$super('Section:' + state, { accordion: this.accordion, section: this });
$super(state, { accordion: this.accordion, section: this });
}
});

0 comments on commit 6b0db65

Please sign in to comment.