summaryrefslogtreecommitdiff
path: root/js/dojo-1.6/dojox/gfx/attach.xd.js
blob: 9df290fcf141a9bc4f10d1e3328b8f776ce2fb1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
	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
*/


dojo._xdResourceLoaded(function(dojo, dijit, dojox){
return {depends: [["provide", "dojox.gfx.attach"],
["require", "dojox.gfx"]],
defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["dojox.gfx.attach"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
dojo._hasResource["dojox.gfx.attach"] = true;
dojo.provide("dojox.gfx.attach");

dojo.require("dojox.gfx");

// rename an attacher conditionally

(function(){
	var r = dojox.gfx.svg.attach[dojox.gfx.renderer];
	dojo.gfx.attachSurface = r.attachSurface;
	dojo.gfx.attachNode = r.attachNode;
})();

}

}};});