From 3d64119deb29c1f4e1862b3e1ebbf98de3e37e5a Mon Sep 17 00:00:00 2001 From: Brian McDaniel Date: Thu, 17 Nov 2011 12:12:41 -0500 Subject: [PATCH] Fix: CSSOM constructors should be available on the DOM. level2/style.js adds properties to the level2 core instance, so it shouldn't operate on a cloned version. --- lib/jsdom/level2/style.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/jsdom/level2/style.js b/lib/jsdom/level2/style.js index 0cff0e2ce6..4cdc4dec44 100644 --- a/lib/jsdom/level2/style.js +++ b/lib/jsdom/level2/style.js @@ -4,9 +4,6 @@ var core = require("./core").dom.level2.core, cssom = require("cssom"), assert = require('assert'); -// modify cloned instance for more info check: https://github.com/tmpvar/jsdom/issues/325 -core = Object.create(core); - // What works now: // - Accessing the rules defined in individual stylesheets // - Modifications to style content attribute are reflected in style property