Custom Query (18300 matches)
Results (142 - 144 of 18300)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#145 | fixed | Move ShrinkSafe off of a subdomain | ||
Description |
ShrinkSafe? should live on the main Dojo website, probably at something like dojotoolkit.org/shrinksafe. |
|||
#146 | fixed | Compressor does not handle nested functions with identical parameter names correctly | ||
Description |
The compressor/ShrinkSafe does not seem to handle nested functions that have identical parameter names in both the inner and function outer functions. The simplest example is probably: function(foo) { function(foo) {}; foo; }; which generates: function(_1){ function(_1){ } foo; }
Notice how the reference to This is the actual piece of code with which I first noticed the problem: OLPanTool.prototype.handleMapMouseDown = function(event, map) { var pt = event.getCursorPosition(); map.startPan(pt.x,pt.y); var realThis = this; OLWindowManager.getDocument().addEventListener('mousemove', function(event) { return realThis.drag(event, map); }); OLWindowManager.getDocument().addEventListener('mouseup', function(event) { return realThis.release(event, map); }); OLWindowManager.getDocument().addEventListener('mouseout', function(event) { if (!event.getRelatedTarget()) { return realThis.release(event, map); } }); map.setMapCursor(OLWindowManager.DRAGGING_CURSOR); event.stopPropagation(); }; |
|||
#147 | fixed | insertAtIndex is confusing | ||
Description |
the function signature for dojo.dom.insertAtIndex(node, ref, insertionIndex);
The problem is that dojo.dom.insertAtIndex(node, ref.firstChild, 7); // what if ref.firstChild is null? We end up with: dojo.dom.insertAtIndex(node, ref, 7); It's cleaner, intuitive, and even mows the lawn! |