1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
| define([
| "dojo/_base/declare", // declare
| "dojo/dom", // dom.setSelectable
| "./_WidgetBase",
| "./_TemplatedMixin",
| "./_Contained",
| "dojo/text!./templates/MenuSeparator.html"
| ], function(declare, dom, _WidgetBase, _TemplatedMixin, _Contained, template){
|
| // module:
| // dijit/MenuSeparator
|
| return declare("dijit.MenuSeparator", [_WidgetBase, _TemplatedMixin, _Contained], {
| // summary:
| // A line between two menu items
|
| templateString: template,
|
| buildRendering: function(){
| this.inherited(arguments);
| dom.setSelectable(this.domNode, false);
| },
|
| isFocusable: function(){
| // summary:
| // Override to always return false
| // tags:
| // protected
|
| return false; // Boolean
| }
| });
| });
|
|