Fix exception in navigation.js
This commit is contained in:
parent
6c039445f2
commit
08571ce01c
|
@ -178,7 +178,9 @@
|
||||||
* Remove all active elements
|
* Remove all active elements
|
||||||
*/
|
*/
|
||||||
Navigation.prototype.clear = function() {
|
Navigation.prototype.clear = function() {
|
||||||
this.$menu.find('.active').removeClass('active');
|
if (this.$menu) {
|
||||||
|
this.$menu.find('.active').removeClass('active');
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue