Index: trunk/extensions/Narayam/resources/ext.narayam.core.js |
— | — | @@ -555,7 +555,7 @@ |
556 | 556 | |
557 | 557 | if ( !haveSchemes ) { |
558 | 558 | // No schemes available, don't show the tool |
559 | | - return false; |
| 559 | + return null; |
560 | 560 | } |
561 | 561 | |
562 | 562 | // Event listener for scheme selection. |
— | — | @@ -638,6 +638,9 @@ |
639 | 639 | */ |
640 | 640 | this.buildMenu = function() { |
641 | 641 | var $menuItemsDiv = that.buildMenuItems(); |
| 642 | + if( $menuItemsDiv == null ) { |
| 643 | + return; |
| 644 | + } |
642 | 645 | var $menu = $( '<div>' ) |
643 | 646 | .attr( 'id', 'narayam-menu' ) |
644 | 647 | .addClass( 'narayam-menu' ); |