Last change
on this file since 274 was
256,
checked in by hendrikvanantwerpen, 13 years ago
|
Reworked project structure based on REST interaction and Dojo library. As
soon as this is stable, the old jQueryUI branch can be removed (it's
kept for reference).
|
File size:
907 bytes
|
Line | |
---|
1 | define([ |
---|
2 | "dojo/_base/declare", // declare |
---|
3 | "dojo/dom", // dom.setSelectable |
---|
4 | "./_WidgetBase", |
---|
5 | "./_TemplatedMixin", |
---|
6 | "./_Contained", |
---|
7 | "dojo/text!./templates/MenuSeparator.html" |
---|
8 | ], function(declare, dom, _WidgetBase, _TemplatedMixin, _Contained, template){ |
---|
9 | |
---|
10 | /*===== |
---|
11 | var _WidgetBase = dijit._WidgetBase; |
---|
12 | var _TemplatedMixin = dijit._TemplatedMixin; |
---|
13 | var _Contained = dijit._Contained; |
---|
14 | =====*/ |
---|
15 | |
---|
16 | // module: |
---|
17 | // dijit/MenuSeparator |
---|
18 | // summary: |
---|
19 | // A line between two menu items |
---|
20 | |
---|
21 | return declare("dijit.MenuSeparator", [_WidgetBase, _TemplatedMixin, _Contained], { |
---|
22 | // summary: |
---|
23 | // A line between two menu items |
---|
24 | |
---|
25 | templateString: template, |
---|
26 | |
---|
27 | buildRendering: function(){ |
---|
28 | this.inherited(arguments); |
---|
29 | dom.setSelectable(this.domNode, false); |
---|
30 | }, |
---|
31 | |
---|
32 | isFocusable: function(){ |
---|
33 | // summary: |
---|
34 | // Override to always return false |
---|
35 | // tags: |
---|
36 | // protected |
---|
37 | |
---|
38 | return false; // Boolean |
---|
39 | } |
---|
40 | }); |
---|
41 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.