]> git.wh0rd.org - tt-rss.git/blob - lib/dijit/MenuSeparator.js
upgrade Dojo to 1.6.1
[tt-rss.git] / lib / dijit / MenuSeparator.js
1 /*
2 Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
3 Available via Academic Free License >= 2.1 OR the modified BSD license.
4 see: http://dojotoolkit.org/license for details
5 */
6
7
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;
10 dojo.provide("dijit.MenuSeparator");
11 dojo.require("dijit._Widget");
12 dojo.require("dijit._Templated");
13 dojo.require("dijit._Contained");
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
39 }