diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2015-06-15 16:37:42 +0200 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2015-06-15 16:37:42 +0200 |
commit | 71c984a986e1c0980ce0a6eb5626dda989cfa428 (patch) | |
tree | 63b4ed56a29b405ffaa91c4b2d95894272de535e /spec | |
parent | 5d80e4393109e181b0ba997e338530c0e2af1dd7 (diff) | |
download | svg.js-71c984a986e1c0980ce0a6eb5626dda989cfa428.tar.gz svg.js-71c984a986e1c0980ce0a6eb5626dda989cfa428.zip |
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')`
Diffstat (limited to 'spec')
-rwxr-xr-x | spec/spec/use.js | 7 |
1 files changed, 0 insertions, 7 deletions
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 |