From 71c984a986e1c0980ce0a6eb5626dda989cfa428 Mon Sep 17 00:00:00 2001 From: Ulrich-Matthias Schäfer Date: Mon, 15 Jun 2015 16:37:42 +0200 Subject: Removed target-reference from use which caused bugs in `dmove()` and `use()` with external file The used element can be retrieved using `element.reference('href')` --- spec/spec/use.js | 7 ------- 1 file changed, 7 deletions(-) (limited to 'spec') diff --git a/spec/spec/use.js b/spec/spec/use.js index f5ab3a8..0de5b39 100755 --- a/spec/spec/use.js +++ b/spec/spec/use.js @@ -17,10 +17,6 @@ describe('Use', function() { expect(use.node.getAttributeNS(SVG.xlink, 'href')).toBe('#' + rect) }) - it('stores a reference to the target element', function() { - expect(use.target).toBe(rect) - }) - it('adopts the geometry of the target element', function() { expect(use.bbox()).toEqual(rect.bbox()) }) @@ -42,9 +38,6 @@ describe('Use', function() { expect(use.node.getAttributeNS(SVG.xlink, 'href')).toBe(file + '#' + id) }) - it('stores a reference to the target element', function() { - expect(use.target).toBe(id) - }) }) }) \ No newline at end of file -- cgit v1.2.3