Comparing version 0.2.29 to 0.2.30
@@ -5,3 +5,3 @@ { | ||
"keywords": ["CSS", "CSSStyleDeclaration", "StyleSheet"], | ||
"version": "0.2.29", | ||
"version": "0.2.30", | ||
"homepage": "https://github.com/chad3814/CSSStyleDeclaration", | ||
@@ -8,0 +8,0 @@ "maintainers": [{ |
@@ -20,31 +20,6 @@ 'use strict'; | ||
dashed = camelToDashed(property); | ||
out_file.write(' Object.defineProperty(prototype, \'' + property + '\', {\n'); | ||
out_file.write(' get: function () {\n'); | ||
out_file.write(' var definition = require(\'./properties/' + property + '\').definition;\n'); | ||
out_file.write(' Object.defineProperty(prototype, \'' + property + '\', definition);\n'); | ||
out_file.write(' return this.' + property + ';\n'); | ||
out_file.write(' },\n'); | ||
out_file.write(' set: function (v) {\n'); | ||
out_file.write(' var definition = require(\'./properties/' + property + '\').definition;\n'); | ||
out_file.write(' Object.defineProperty(prototype, \'' + property + '\', definition);\n'); | ||
out_file.write(' this.' + property + ' = v;\n'); | ||
out_file.write(' },\n'); | ||
out_file.write(' enumerable: true,\n'); | ||
out_file.write(' configurable: true\n'); | ||
out_file.write(' });\n'); | ||
out_file.write(' var '+property+' = require(\'./properties/' + property + '\').definition;\n'); | ||
out_file.write(' Object.defineProperty(prototype, \'' + property + '\', '+property+')\n'); | ||
if (property !== dashed) { | ||
out_file.write(' Object.defineProperty(prototype, \'' + dashed + '\', {\n'); | ||
out_file.write(' get: function () {\n'); | ||
out_file.write(' var definition = require(\'./properties/' + property + '\').definition;\n'); | ||
out_file.write(' Object.defineProperty(prototype, \'' + property + '\', definition);\n'); | ||
out_file.write(' return this.' + property + ';\n'); | ||
out_file.write(' },\n'); | ||
out_file.write(' set: function (v) {\n'); | ||
out_file.write(' var definition = require(\'./properties/' + property + '\').definition;\n'); | ||
out_file.write(' Object.defineProperty(prototype, \'' + property + '\', definition);\n'); | ||
out_file.write(' this.' + property + ' = v;\n'); | ||
out_file.write(' },\n'); | ||
out_file.write(' enumerable: true,\n'); | ||
out_file.write(' configurable: true\n'); | ||
out_file.write(' });\n'); | ||
out_file.write(' Object.defineProperty(prototype, \'' + dashed + '\', '+property+')\n'); | ||
} | ||
@@ -51,0 +26,0 @@ } |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
261144
7095