]>
Commit | Line | Data |
---|---|---|
2f01fe57 | 1 | /* |
81bea17a | 2 | Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved. |
2f01fe57 AD |
3 | Available via Academic Free License >= 2.1 OR the modified BSD license. |
4 | see: http://dojotoolkit.org/license for details | |
5 | */ | |
6 | ||
7 | ||
81bea17a AD |
8 | if(!dojo._hasResource["dijit.MenuSeparator"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. |
9 | dojo._hasResource["dijit.MenuSeparator"] = true; | |
2f01fe57 AD |
10 | dojo.provide("dijit.MenuSeparator"); |
11 | dojo.require("dijit._Widget"); | |
12 | dojo.require("dijit._Templated"); | |
13 | dojo.require("dijit._Contained"); | |
81bea17a AD |
14 | |
15 | ||
16 | dojo.declare("dijit.MenuSeparator", | |
17 | [dijit._Widget, dijit._Templated, dijit._Contained], | |
18 | { | |
19 | // summary: | |
20 | // A line between two menu items | |
21 | ||
22 | templateString: dojo.cache("dijit", "templates/MenuSeparator.html", "<tr class=\"dijitMenuSeparator\">\n\t<td class=\"dijitMenuSeparatorIconCell\">\n\t\t<div class=\"dijitMenuSeparatorTop\"></div>\n\t\t<div class=\"dijitMenuSeparatorBottom\"></div>\n\t</td>\n\t<td colspan=\"3\" class=\"dijitMenuSeparatorLabelCell\">\n\t\t<div class=\"dijitMenuSeparatorTop dijitMenuSeparatorLabel\"></div>\n\t\t<div class=\"dijitMenuSeparatorBottom\"></div>\n\t</td>\n</tr>\n"), | |
23 | ||
24 | buildRendering: function(){ | |
25 | this.inherited(arguments); | |
26 | dojo.setSelectable(this.domNode, false); | |
27 | }, | |
28 | ||
29 | isFocusable: function(){ | |
30 | // summary: | |
31 | // Override to always return false | |
32 | // tags: | |
33 | // protected | |
34 | ||
35 | return false; // Boolean | |
36 | } | |
37 | }); | |
38 | ||
2f01fe57 | 39 | } |