Permalink
Browse files

fix issue #5, by deleting the property and re-setting it instead of c…

…alling Object.defineProperty
  • Loading branch information...
kazuho committed Jun 5, 2012
1 parent 94c4150 commit b64b77098715c98e66db5c0003a5528e8810cfae
Showing with 2 additions and 6 deletions.
  1. +2 −6 src/js/bootstrap.js
View
@@ -15,12 +15,8 @@ function $__jsx_merge_interface(target, source) {
*/
function $__jsx_lazy_init(obj, prop, func) {
function reset(obj, prop, value) {
- Object.defineProperty(obj, prop, {
- value: value,
- enumerable: true,
- writable: true,
- configurable: true
- });
+ delete obj[prop];
+ obj[prop] = value;
return value;
}

0 comments on commit b64b770

Please sign in to comment.