attach.js 625 B

12345678910111213141516171819202122
  1. /*
  2. Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved.
  3. Available via Academic Free License >= 2.1 OR the modified BSD license.
  4. see: http://dojotoolkit.org/license for details
  5. */
  6. if(!dojo._hasResource["dojox.gfx.attach"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
  7. dojo._hasResource["dojox.gfx.attach"] = true;
  8. dojo.provide("dojox.gfx.attach");
  9. dojo.require("dojox.gfx");
  10. // rename an attacher conditionally
  11. (function(){
  12. var r = dojox.gfx.svg.attach[dojox.gfx.renderer];
  13. dojo.gfx.attachSurface = r.attachSurface;
  14. dojo.gfx.attachNode = r.attachNode;
  15. })();
  16. }