diff options
author | anekos | 2011-09-07 21:45:46 +0900 |
---|---|---|
committer | anekos | 2011-09-07 21:45:46 +0900 |
commit | 18658cabbe0f717c08dcadc55a329b5cd31ffea9 (patch) | |
tree | 85851b81015d251ddfd58029c7ed69199fdb69bf /my-style.js | |
parent | 7f1d7fb0bfd0c8b9ee9c76a1a32e5de399a9d7d0 (diff) | |
download | vimperator-plugins-18658cabbe0f717c08dcadc55a329b5cd31ffea9.tar.bz2 |
リローダブル
Diffstat (limited to 'my-style.js')
-rw-r--r-- | my-style.js | 16 |
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 = {}; |