summaryrefslogtreecommitdiff
path: root/js/dojo-1.6/dojox/gfx/attach.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/dojo-1.6/dojox/gfx/attach.js')
-rw-r--r--js/dojo-1.6/dojox/gfx/attach.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/js/dojo-1.6/dojox/gfx/attach.js b/js/dojo-1.6/dojox/gfx/attach.js
new file mode 100644
index 0000000..2bbc69b
--- /dev/null
+++ b/js/dojo-1.6/dojox/gfx/attach.js
@@ -0,0 +1,22 @@
+/*
+ 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
+*/
+
+
+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;
+})();
+
+}