Skip to content

Commit

Permalink
removing iframe from snippet to clean DOM
Browse files Browse the repository at this point in the history
  • Loading branch information
simonjung committed Jun 26, 2013
1 parent 08b2e9f commit acf11c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/list_user_defined_global_properties_on_window.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
results = currentWindow.filter(function(prop) {
return !iframe.contentWindow.hasOwnProperty(prop);
});
// remove iframe
document.body.removeChild(iframe);
// log an array of properties that are different
console.log(results);
}());

0 comments on commit acf11c5

Please sign in to comment.