# JavascriptEngine not calling hasProperty and getProperty

**URL:** <https://forum.juce.com/t/javascriptengine-not-calling-hasproperty-and-getproperty/12911>\
**Category:** General JUCE discussion\
**Created:** [May 27, 2014, 8:01pm UTC](https://forum.juce.com/t/javascriptengine-not-calling-hasproperty-and-getproperty/12911 "2014-05-27T20:01:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rebbur](https://avatars.discourse-cdn.com/v4/letter/r/ecae2f/32.png) [@rebbur](https://forum.juce.com/u/rebbur)\
**Post date:** [May 27, 2014, 8:01pm UTC](https://forum.juce.com/t/javascriptengine-not-calling-hasproperty-and-getproperty/12911/1 "2014-05-27T20:01:06Z")

</div>

Hi there,

I've created some DynamicObjects which i expose to the JavascriptEngine.&nbsp;  
I've overridden the&nbsp;setProperty method to do some custom hocus pocus but i was expecting that the hasProperty and getProperty were getting called as well but they aren't. I see the&nbsp;properties of the exposed DynamicObject are accessed through the 'NamedValueSet' directly in the JavascriptEngine.

Why can i override the&nbsp;getProperty method but not the&nbsp;hasProperty and getProperty?

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [May 28, 2014, 1:11pm UTC](https://forum.juce.com/t/javascriptengine-not-calling-hasproperty-and-getproperty/12911/2 "2014-05-28T13:11:55Z")

</div>

Hmm, fair point. It could probably use a bit of re-thinking, but I'm afraid I don't have time to dig into it right now.
