From 81bea17aefb26859f825b9293c7c99192874806e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 8 Nov 2011 20:40:44 +0400 Subject: upgrade Dojo to 1.6.1 --- lib/dijit/MenuSeparator.js | 36 ++++++++++++++++++++++++++++-------- 1 file changed, 28 insertions(+), 8 deletions(-) (limited to 'lib/dijit/MenuSeparator.js') diff --git a/lib/dijit/MenuSeparator.js b/lib/dijit/MenuSeparator.js index 34fa0bada..e532d9320 100644 --- a/lib/dijit/MenuSeparator.js +++ b/lib/dijit/MenuSeparator.js @@ -1,19 +1,39 @@ /* - Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved. + Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ -if(!dojo._hasResource["dijit.MenuSeparator"]){ -dojo._hasResource["dijit.MenuSeparator"]=true; +if(!dojo._hasResource["dijit.MenuSeparator"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. +dojo._hasResource["dijit.MenuSeparator"] = true; dojo.provide("dijit.MenuSeparator"); dojo.require("dijit._Widget"); dojo.require("dijit._Templated"); dojo.require("dijit._Contained"); -dojo.declare("dijit.MenuSeparator",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:dojo.cache("dijit","templates/MenuSeparator.html","\n\t\n\t\t
\n\t\t
\n\t\n\t\n\t\t
\n\t\t
\n\t\n\n"),postCreate:function(){ -dojo.setSelectable(this.domNode,false); -},isFocusable:function(){ -return false; -}}); + + +dojo.declare("dijit.MenuSeparator", + [dijit._Widget, dijit._Templated, dijit._Contained], + { + // summary: + // A line between two menu items + + templateString: dojo.cache("dijit", "templates/MenuSeparator.html", "\n\t\n\t\t
\n\t\t
\n\t\n\t\n\t\t
\n\t\t
\n\t\n\n"), + + buildRendering: function(){ + this.inherited(arguments); + dojo.setSelectable(this.domNode, false); + }, + + isFocusable: function(){ + // summary: + // Override to always return false + // tags: + // protected + + return false; // Boolean + } + }); + } -- cgit v1.2.3