initEvents :function ()
{
//Roo.log(this.el.select('.navbar-toggle',true));
- this.el.select('.navbar-toggle',true).on('click', function() {
- if(this.fireEvent('beforetoggle', this) !== false){
-
- if (ce.hasClass('collapse')) {
- this.expand();
- } else {
- this.collapse();
- }
- }
-
- }, this);
+ this.el.select('.navbar-toggle',true).on('click', , this);
var mark = {
tag: "div",
{
this.maskEl.hide();
},
+ onToggle : function()
+ {
+
+ if(this.fireEvent('beforetoggle', this) === false){
+ return;
+ }
+ var ce = this.el.select('.navbar-collapse',true).first();
+
+ if (ce.hasClass('collapse')) {
+ this.expand();
+ } else {
+ this.collapse();
+ }
+
+
+ }
expand : function ()
{
var ce = this.el.select('.navbar-collapse',true).first();