Permalink
Browse files

fix(watch): Fixed watch on Safari

  • Loading branch information...
calebdwilliams committed Aug 4, 2018
1 parent 820dd3e commit 2f96ce40c3f049e81cc59906789972109a4ddade
@@ -77,7 +77,7 @@ <h1>
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Aug 02 2018 20:06:39 GMT-0500 (CDT)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Aug 02 2018 20:16:19 GMT-0500 (CDT)
</div>
</div>
<script src="prettify.js"></script>
@@ -77,7 +77,7 @@ <h1>
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Aug 02 2018 20:06:39 GMT-0500 (CDT)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Aug 02 2018 20:16:19 GMT-0500 (CDT)
</div>
</div>
<script src="../prettify.js"></script>
@@ -1909,7 +1909,7 @@ <h1>
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Aug 02 2018 20:06:39 GMT-0500 (CDT)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Aug 02 2018 20:16:19 GMT-0500 (CDT)
</div>
</div>
<script src="../prettify.js"></script>
@@ -232,7 +232,6 @@ class Template {
this.partIndicies = new Map();
this.context.$el = location;
this.templateSymbol = Symbol('Template');
this.eventHandlers = [];
this.nodes = [];
this._init();
}
@@ -571,6 +570,11 @@ const watch = (object, onChange) => {
return Reflect.get(target, property, receiver);
}
},
set(target, property, value) {
target[property] = value;
onChange(target, property, { value });
return true;
},
defineProperty(target, property, descriptor) {
const define = Reflect.defineProperty(target, property, descriptor);
onChange(target, property, descriptor);

0 comments on commit 2f96ce4

Please sign in to comment.