Custom Query (18300 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (157 - 159 of 18300)

Ticket Resolution Summary Owner Reporter
#16918 wontfix load multiple modules via single script tag Rawld Gill yulei
Description

when i use dojo.require(["moduleA","moduleB","moduleC"]); can it generate only one script tag like "<script src="url/to/server/dojo.package?moduleA&moduleB&moduleC"></scirpt>"

by this way ,the server can return only one javascript file which is compressed by server contains three modules.(in the server side can do a lot of cache works.)

i think dojo build is a little difficult to use. the build work should be black box for the javascript developer.

#13604 fixed dijit/popup::moveOffScreen() can cause horizontal scroll bar bill yuanyuan
Description

In the file popup.js under the path dijit\_base, there are codes as below. The code section shows that the popup menu is hidden with that the top is value -9999px and the visibility is hidden.

moveOffScreen: function(/*Widget || DomNode*/ widget){
		var wrapper = widget.declaredClass ? widget._popupWrapper :(dojo.hasClass(widget.parentNode,"dijitPopup") && widget.parentNode),
		node = widget.domNode || widget;

		if(wrapper){		
			dojo.style(wrapper, {
				visibility: "hidden",
                                top: "-9999px"
			});
		}

Actually the "left" value should be assigned when the popup menu is hidden. Because the "visibility: "hidden"" shows that the popup menu occupies the space where they stay even if it is hidden. The "top" value only changes the vertical position, but the horizontal position is affected by the "left" value. Not assigning the "left" value is based on the assumption that the space is big enough to hide the popup menus and not affect other elements to display. But in the fact, the assumption is not always true, and the unneeded scroll bar always occurs because the element occupies the space even if it is hidden.

#17019 patchwelcome dom-prop.set() fails remove old function. Eugene Lazutkin ysobj
Description

dom-prop.set() can't remove function.

reproduce:

source

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
  </head>
  <body>
    <script src="dojo/dojo.js"
      data-dojo-config="async: true"></script>
    <script>
      require(['dojo/dom-attr','dojo/domReady!'], function(domAttr){
        domAttr.set('btna',{onclick:function(e){
            console.log('a1');
        }});
        domAttr.set('btna',{onclick:function(e){
            console.log('a2');
        }});
        domAttr.set('btnb',{onclick:function(e){
            console.log('b1');
        }});
        domAttr.set('btnb',{onclick:function(e){
            console.log('b2');
        }});
      });
    </script>
      <button id="btna">button A</button>
      <button id="btnb">button B</button>
  </body>
</html>

click button a

a1
a2

click button b

b2 

dom-props has a variable '_ctr' that start with 0. I think that variable should be start with 1.

'dom-props.js' around line 150

		if(lang.isFunction(value)){
			// special case: assigning an event handler
			// clobber if we can
			var attrId = node[_attrId];
			if(!attrId){
				attrId = _ctr++;
				node[_attrId] = attrId;
			}

This "if(!attrId)" is the cause of this bug.

Note: See TracQuery for help on using queries.