Fix exception in navigation.js

This commit is contained in:
Eric Lippmann 2016-12-13 13:31:46 +01:00
parent 6c039445f2
commit 08571ce01c
1 changed files with 3 additions and 1 deletions

View File

@ -178,7 +178,9 @@
* Remove all active elements
*/
Navigation.prototype.clear = function() {
this.$menu.find('.active').removeClass('active');
if (this.$menu) {
this.$menu.find('.active').removeClass('active');
}
};
/**