aboutsummaryrefslogtreecommitdiffstats
path: root/my-style.js
diff options
context:
space:
mode:
authoranekos2011-09-07 21:45:46 +0900
committeranekos2011-09-07 21:45:46 +0900
commit18658cabbe0f717c08dcadc55a329b5cd31ffea9 (patch)
tree85851b81015d251ddfd58029c7ed69199fdb69bf /my-style.js
parent7f1d7fb0bfd0c8b9ee9c76a1a32e5de399a9d7d0 (diff)
downloadvimperator-plugins-18658cabbe0f717c08dcadc55a329b5cd31ffea9.tar.bz2
リローダブル
Diffstat (limited to 'my-style.js')
-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 = {};