Log In | Sign Up   View a printable version of the current page.
  Dashboard > [fleXive] > ... > Checking out and working with the sources > Building a Customized Dojo Package

Added by Markus Plesser, last edited by Daniel Lichtenberger on Sep 14, 2009  (view change)
Labels: 
(None)

How to build a customized Dojo package

In the commands below, $VERSION is the Dojo release version, e.g. 0.4.1.
Browse http://svn.dojotoolkit.org/dojo/tags for possible values.

The only place where we still use Dojo is in the backend admistration's tree widget. We plan to phase out Dojo eventually in favor of Yahoo UI or RichFaces widgets.

Context Menu IE7 fix

In the standard Dojo 0.4.1 build, the context menu is opened at the wrong position in IE7. To fix this, you have to remove the lines

Menu2.js
if(iframe){
	var cood = dojo.html.abs(iframe, true);
	x += cood.x - dojo.withGlobal(win, dojo.html.getScroll).left;
	y += cood.y - dojo.withGlobal(win, dojo.html.getScroll).top;
}

in src/widget/Menu2.js (approx. line 300) (see Dojo Bug 2317)

"Cannot execute code from freed script" IE7 fix

Dojo's addOnUnload methods sometimes seems to trigger too late and leads to this error in IE7. To solve this, apply the workaround from http://tc2tc.mojolingo.xuite.net/m2m-0400/trac.dojotoolkit.org/ticket/3697:

1/ In src/event/common.js, line 313:

REPLACE

mjp.kwAddAdvice(ao);

BY

try { mjp.kwAddAdvice(ao); } catch (e) { return null; }

2/ In src/event/common.js, line 452:

REPLACE

mjp.removeAdvice(ao.adviceObj, ao.adviceFunc, ao.adviceType, ao.once);

BY

try { mjp.removeAdvice(ao.adviceObj,ao.adviceFunc,ao.adviceType,ao.once); } catch (e) { return null; }

3/ In src/widget/PopupContainer.js, line 376

SURROUND THE BLOCK lines 376-382 WITH

try { if(win.PopupManagerRegistered){ dojo.event.disconnect(win.document,"onmousedown",this,"onClick"); dojo.event.disconnect(win,"onscroll",this,"onClick"); dojo.event.disconnect(win.document,"onkey",this,"onKey"); win.PopupManagerRegistered=false; } } catch (e) {}

Site running on a free Atlassian Confluence Open Source Project License granted to [fleXive] . Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.6.1 Build:#916 Nov 09, 2007) - Bug/feature request - Contact Administrators