2010-11-15 08:39:52 +01:00
|
|
|
/*
|
2011-11-08 17:40:44 +01:00
|
|
|
Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
|
2010-11-15 08:39:52 +01:00
|
|
|
Available via Academic Free License >= 2.1 OR the modified BSD license.
|
|
|
|
see: http://dojotoolkit.org/license for details
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2011-11-08 17:40:44 +01:00
|
|
|
if(!dojo._hasResource["dijit.MenuSeparator"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
|
|
|
|
dojo._hasResource["dijit.MenuSeparator"] = true;
|
2010-11-15 08:39:52 +01:00
|
|
|
dojo.provide("dijit.MenuSeparator");
|
|
|
|
dojo.require("dijit._Widget");
|
|
|
|
dojo.require("dijit._Templated");
|
|
|
|
dojo.require("dijit._Contained");
|
2011-11-08 17:40:44 +01:00
|
|
|
|
|
|
|
|
|
|
|
dojo.declare("dijit.MenuSeparator",
|
|
|
|
[dijit._Widget, dijit._Templated, dijit._Contained],
|
|
|
|
{
|
|
|
|
// summary:
|
|
|
|
// A line between two menu items
|
|
|
|
|
|
|
|
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"),
|
|
|
|
|
|
|
|
buildRendering: function(){
|
|
|
|
this.inherited(arguments);
|
|
|
|
dojo.setSelectable(this.domNode, false);
|
|
|
|
},
|
|
|
|
|
|
|
|
isFocusable: function(){
|
|
|
|
// summary:
|
|
|
|
// Override to always return false
|
|
|
|
// tags:
|
|
|
|
// protected
|
|
|
|
|
|
|
|
return false; // Boolean
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2010-11-15 08:39:52 +01:00
|
|
|
}
|