diff options
Diffstat (limited to 'lib/dojo/dnd/Container.js')
-rw-r--r-- | lib/dojo/dnd/Container.js | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/dojo/dnd/Container.js b/lib/dojo/dnd/Container.js index 6efc6f6fb..58f34eb6b 100644 --- a/lib/dojo/dnd/Container.js +++ b/lib/dojo/dnd/Container.js @@ -1,5 +1,5 @@ /* - 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 */ @@ -8,10 +8,10 @@ if(!dojo._hasResource["dojo.dnd.Container"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. dojo._hasResource["dojo.dnd.Container"] = true; dojo.provide("dojo.dnd.Container"); - dojo.require("dojo.dnd.common"); dojo.require("dojo.parser"); + /* Container states: "" - normal state @@ -63,7 +63,7 @@ dojo.dnd.Item = function(){ dojo.declare("dojo.dnd.Container", null, { // summary: - // a Container object, which knows when mouse hovers over it, + // a Container object, which knows when mouse hovers over it, // and over which element it hovers // object attributes (for markup) @@ -140,7 +140,7 @@ dojo.declare("dojo.dnd.Container", null, { }, forInItems: function(/*Function*/ f, /*Object?*/ o){ // summary: - // iterates over a data map skipping members that + // iterates over a data map skipping members that // are present in the empty object (IE and/or 3rd-party libraries). o = o || dojo.global; var m = this.map, e = dojo.dnd._empty; @@ -327,8 +327,7 @@ dojo.declare("dojo.dnd.Container", null, { var prefix = "dojoDnd" + type; var state = type.toLowerCase() + "State"; //dojo.replaceClass(this.node, prefix + newState, prefix + this[state]); - dojo.removeClass(this.node, prefix + this[state]); - dojo.addClass(this.node, prefix + newState); + dojo.replaceClass(this.node, prefix + newState, prefix + this[state]); this[state] = newState; }, _addItemClass: function(node, type){ @@ -375,7 +374,7 @@ dojo.declare("dojo.dnd.Container", null, { dojo.dnd._createNode = function(tag){ // summary: - // returns a function, which creates an element of given tag + // returns a function, which creates an element of given tag // (SPAN by default) and sets its innerHTML to given text // tag: String // a tag name or empty for SPAN |