diff options
author | Andrew Dolgov <[email protected]> | 2012-08-14 19:04:32 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-08-14 19:04:32 +0400 |
commit | 0181c0110985cfd2659e81c8cc1ef5a2f73bc697 (patch) | |
tree | e2250a345481fa63cfcf98d76830338ad7eb9818 /lib/dijit/PopupMenuItem.js.uncompressed.js | |
parent | 973c4a649fd8f83ed85004f3365f10f9c24d8349 (diff) |
dojo: remove uncompressed files
Diffstat (limited to 'lib/dijit/PopupMenuItem.js.uncompressed.js')
-rw-r--r-- | lib/dijit/PopupMenuItem.js.uncompressed.js | 80 |
1 files changed, 0 insertions, 80 deletions
diff --git a/lib/dijit/PopupMenuItem.js.uncompressed.js b/lib/dijit/PopupMenuItem.js.uncompressed.js deleted file mode 100644 index 201574225..000000000 --- a/lib/dijit/PopupMenuItem.js.uncompressed.js +++ /dev/null @@ -1,80 +0,0 @@ -define("dijit/PopupMenuItem", [ - "dojo/_base/declare", // declare - "dojo/dom-style", // domStyle.set - "dojo/query", // query - "dojo/_base/window", // win.body - "./registry", // registry.byNode - "./MenuItem", - "./hccss" -], function(declare, domStyle, query, win, registry, MenuItem){ - -/*===== - var MenuItem = dijit.MenuItem; -=====*/ - - // module: - // dijit/PopupMenuItem - // summary: - // An item in a Menu that spawn a drop down (usually a drop down menu) - - return declare("dijit.PopupMenuItem", MenuItem, { - // summary: - // An item in a Menu that spawn a drop down (usually a drop down menu) - - _fillContent: function(){ - // summary: - // When Menu is declared in markup, this code gets the menu label and - // the popup widget from the srcNodeRef. - // description: - // srcNodeRefinnerHTML contains both the menu item text and a popup widget - // The first part holds the menu item text and the second part is the popup - // example: - // | <div data-dojo-type="dijit.PopupMenuItem"> - // | <span>pick me</span> - // | <popup> ... </popup> - // | </div> - // tags: - // protected - - if(this.srcNodeRef){ - var nodes = query("*", this.srcNodeRef); - this.inherited(arguments, [nodes[0]]); - - // save pointer to srcNode so we can grab the drop down widget after it's instantiated - this.dropDownContainer = this.srcNodeRef; - } - }, - - startup: function(){ - if(this._started){ return; } - this.inherited(arguments); - - // we didn't copy the dropdown widget from the this.srcNodeRef, so it's in no-man's - // land now. move it to win.doc.body. - if(!this.popup){ - var node = query("[widgetId]", this.dropDownContainer)[0]; - this.popup = registry.byNode(node); - } - win.body().appendChild(this.popup.domNode); - this.popup.startup(); - - this.popup.domNode.style.display="none"; - if(this.arrowWrapper){ - domStyle.set(this.arrowWrapper, "visibility", ""); - } - this.focusNode.setAttribute("aria-haspopup", "true"); - }, - - destroyDescendants: function(/*Boolean*/ preserveDom){ - if(this.popup){ - // Destroy the popup, unless it's already been destroyed. This can happen because - // the popup is a direct child of <body> even though it's logically my child. - if(!this.popup._destroyed){ - this.popup.destroyRecursive(preserveDom); - } - delete this.popup; - } - this.inherited(arguments); - } - }); -}); |