We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e905317 commit 2e61f64Copy full SHA for 2e61f64
samples/svg.html
@@ -12,16 +12,19 @@
12
require([
13
"requirejs-dplugins/svg!requirejs-dplugins/samples/svg/add.svg",
14
"requirejs-dplugins/svg!requirejs-dplugins/samples/svg/download.svg"
15
- ]);
+ ], function (addId, downloadId) {
16
+ document.getElementById("addIcon").setAttributeNS("http://www.w3.org/1999/xlink", "href", "#" + addId);
17
+ document.getElementById("downloadIcon").setAttributeNS("http://www.w3.org/1999/xlink", "href", "#" + downloadId);
18
+ });
19
</script>
20
</head>
21
<body>
22
23
<svg>
- <use xlink:href="#add"></use>
24
+ <use id="addIcon"></use>
25
</svg>
26
- <use xlink:href="#download"></use>
27
+ <use id="downloadIcon"></use>
28
29
30
</body>
0 commit comments