aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--my-style.js16
1 files changed, 9 insertions, 7 deletions
diff --git a/my-style.js b/my-style.js
index 93f8bc4..7a761d4 100644
--- a/my-style.js
+++ b/my-style.js
@@ -155,13 +155,15 @@ EOM
]]></>
};
- Object.defineProperty(
- __context__,
- 'DefinedStyles',
- {
- get: function () (liberator.globalVariables.my_style_define || DefaultDefinedStyle)
- }
- );
+ if (!__context__.DefinedStyles) {
+ Object.defineProperty(
+ __context__,
+ 'DefinedStyles',
+ {
+ get: function () (liberator.globalVariables.my_style_define || DefaultDefinedStyle)
+ }
+ );
+ }
const Currents = {};