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/MenuBarItem.js | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) (limited to 'lib/dijit/MenuBarItem.js') diff --git a/lib/dijit/MenuBarItem.js b/lib/dijit/MenuBarItem.js index 77088bff2..2c7372dcd 100644 --- a/lib/dijit/MenuBarItem.js +++ b/lib/dijit/MenuBarItem.js @@ -1,14 +1,29 @@ /* - 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.MenuBarItem"]){ -dojo._hasResource["dijit.MenuBarItem"]=true; +if(!dojo._hasResource["dijit.MenuBarItem"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. +dojo._hasResource["dijit.MenuBarItem"] = true; dojo.provide("dijit.MenuBarItem"); dojo.require("dijit.MenuItem"); -dojo.declare("dijit._MenuBarItemMixin",null,{templateString:dojo.cache("dijit","templates/MenuBarItem.html","
\n\t\n
\n"),attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{label:{node:"containerNode",type:"innerHTML"}})}); -dojo.declare("dijit.MenuBarItem",[dijit.MenuItem,dijit._MenuBarItemMixin],{}); + + +dojo.declare("dijit._MenuBarItemMixin", null, { + templateString: dojo.cache("dijit", "templates/MenuBarItem.html", "
\n\t\n
\n"), + + // overriding attributeMap because we don't have icon + attributeMap: dojo.delegate(dijit._Widget.prototype.attributeMap, { + label: { node: "containerNode", type: "innerHTML" } + }) +}); + +dojo.declare("dijit.MenuBarItem", [dijit.MenuItem, dijit._MenuBarItemMixin], { + // summary: + // Item in a MenuBar that's clickable, and doesn't spawn a submenu when pressed (or hovered) + +}); + } -- cgit v1.2.3