]>
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.ToolbarSeparator"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. |
9 | dojo._hasResource["dijit.ToolbarSeparator"] = true; | |
2f01fe57 AD |
10 | dojo.provide("dijit.ToolbarSeparator"); |
11 | dojo.require("dijit._Widget"); | |
12 | dojo.require("dijit._Templated"); | |
81bea17a AD |
13 | |
14 | ||
15 | dojo.declare("dijit.ToolbarSeparator", | |
16 | [ dijit._Widget, dijit._Templated ], | |
17 | { | |
18 | // summary: | |
19 | // A spacer between two `dijit.Toolbar` items | |
20 | templateString: '<div class="dijitToolbarSeparator dijitInline" role="presentation"></div>', | |
21 | buildRendering: function(){ | |
22 | this.inherited(arguments); | |
23 | dojo.setSelectable(this.domNode, false); | |
24 | }, | |
25 | isFocusable: function(){ | |
26 | // summary: | |
27 | // This widget isn't focusable, so pass along that fact. | |
28 | // tags: | |
29 | // protected | |
30 | return false; | |
31 | } | |
32 | ||
33 | }); | |
34 | ||
2f01fe57 | 35 | } |