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/_Container.js.uncompressed.js | |
parent | 973c4a649fd8f83ed85004f3365f10f9c24d8349 (diff) |
dojo: remove uncompressed files
Diffstat (limited to 'lib/dijit/_Container.js.uncompressed.js')
-rw-r--r-- | lib/dijit/_Container.js.uncompressed.js | 107 |
1 files changed, 0 insertions, 107 deletions
diff --git a/lib/dijit/_Container.js.uncompressed.js b/lib/dijit/_Container.js.uncompressed.js deleted file mode 100644 index a79c38262..000000000 --- a/lib/dijit/_Container.js.uncompressed.js +++ /dev/null @@ -1,107 +0,0 @@ -define("dijit/_Container", [ - "dojo/_base/array", // array.forEach array.indexOf - "dojo/_base/declare", // declare - "dojo/dom-construct", // domConstruct.place - "./registry" // registry.byNode() -], function(array, declare, domConstruct, registry){ - - // module: - // dijit/_Container - // summary: - // Mixin for widgets that contain a set of widget children. - - return declare("dijit._Container", null, { - // summary: - // Mixin for widgets that contain a set of widget children. - // description: - // Use this mixin for widgets that needs to know about and - // keep track of their widget children. Suitable for widgets like BorderContainer - // and TabContainer which contain (only) a set of child widgets. - // - // It's not suitable for widgets like ContentPane - // which contains mixed HTML (plain DOM nodes in addition to widgets), - // and where contained widgets are not necessarily directly below - // this.containerNode. In that case calls like addChild(node, position) - // wouldn't make sense. - - buildRendering: function(){ - this.inherited(arguments); - if(!this.containerNode){ - // all widgets with descendants must set containerNode - this.containerNode = this.domNode; - } - }, - - addChild: function(/*dijit._Widget*/ widget, /*int?*/ insertIndex){ - // summary: - // Makes the given widget a child of this widget. - // description: - // Inserts specified child widget's dom node as a child of this widget's - // container node, and possibly does other processing (such as layout). - - var refNode = this.containerNode; - if(insertIndex && typeof insertIndex == "number"){ - var children = this.getChildren(); - if(children && children.length >= insertIndex){ - refNode = children[insertIndex-1].domNode; - insertIndex = "after"; - } - } - domConstruct.place(widget.domNode, refNode, insertIndex); - - // If I've been started but the child widget hasn't been started, - // start it now. Make sure to do this after widget has been - // inserted into the DOM tree, so it can see that it's being controlled by me, - // so it doesn't try to size itself. - if(this._started && !widget._started){ - widget.startup(); - } - }, - - removeChild: function(/*Widget|int*/ widget){ - // summary: - // Removes the passed widget instance from this widget but does - // not destroy it. You can also pass in an integer indicating - // the index within the container to remove - - if(typeof widget == "number"){ - widget = this.getChildren()[widget]; - } - - if(widget){ - var node = widget.domNode; - if(node && node.parentNode){ - node.parentNode.removeChild(node); // detach but don't destroy - } - } - }, - - hasChildren: function(){ - // summary: - // Returns true if widget has children, i.e. if this.containerNode contains something. - return this.getChildren().length > 0; // Boolean - }, - - _getSiblingOfChild: function(/*dijit._Widget*/ child, /*int*/ dir){ - // summary: - // Get the next or previous widget sibling of child - // dir: - // if 1, get the next sibling - // if -1, get the previous sibling - // tags: - // private - var node = child.domNode, - which = (dir>0 ? "nextSibling" : "previousSibling"); - do{ - node = node[which]; - }while(node && (node.nodeType != 1 || !registry.byNode(node))); - return node && registry.byNode(node); // dijit._Widget - }, - - getIndexOfChild: function(/*dijit._Widget*/ child){ - // summary: - // Gets the index of the child in this container or -1 if not found - return array.indexOf(this.getChildren(), child); // int - } - }); -}); |