Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Fix tests on FF.
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed Nov 15, 2013
1 parent f3c3ab7 commit 10721ad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions src/HTMLImports.js
Original file line number Diff line number Diff line change
Expand Up @@ -446,9 +446,6 @@ Object.defineProperty(document, '_currentScript', {
get: function() {
return HTMLImports.currentScript || document.currentScript;
},
set: function(script) {
HTMLImports.currentScript = script;
},
writeable: true,
configurable: true
});
Expand Down
2 changes: 1 addition & 1 deletion test/html/imports/script-1.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div>me</div>
<script>
var d = document._currentScript.ownerDocument.querySelector('div');
chai.assert.equal(d.innerText, 'me', '_currentScript can locate element in import')
chai.assert.equal(d.innerHTML, 'me', '_currentScript can locate element in import')
</script>

0 comments on commit 10721ad

Please sign in to comment.