<div dir="ltr">Alan,<div><br></div><div>registerEvents is the main function that gets invoked on the client-side javascript controller.</div><div>Either new / extend works.</div><div><br></div><div><div>With extending the base list view it gets the other function definitions </div>

<div>that can be invoked at sometime later.</div></div><div><br></div><div>WorldClock v1 example doesn't follow the same UI conventions as its parent </div><div>and hence does not invoke the parent method.</div><div>
<br>
</div><div>Have a look at few standard modules like (<a href="http://trac.vtiger.com/svn/vtiger/vtigercrm/branches/6.0.0/layouts/vlayout/modules/Contacts/resources/Detail.js">Contacts</a>, <a href="http://trac.vtiger.com/svn/vtiger/vtigercrm/branches/6.1.0/layouts/vlayout/modules/Rss/resources/List.js">Rss</a>) that does extend client-side controller.</div>

<div><br></div></div><div class="gmail_extra"><br clear="all"><div><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><b>Connect with us on: </b><a href="http://twitter.com/vtigercrm" style="color:rgb(0,0,204)" target="_blank">Twitter</a> <b>I</b> <a href="http://www.facebook.com/pages/vtiger/226866697333578?sk=wall" style="color:rgb(0,0,204)" target="_blank">Facebook</a> <b>I</b> <a href="https://blogs.vtiger.com/" style="color:rgb(0,0,204)" target="_blank">Blog</a><b> I</b> <a href="http://wiki.vtiger.com/index.php/Main_Page" style="color:rgb(0,0,204)" target="_blank">Wiki</a> <b>I </b><a href="https://discussions.vtiger.com" style="color:rgb(0,0,204)" target="_blank">Forums </a><b>I</b> <a href="https://www.vtiger.com/" style="color:rgb(0,0,204)" target="_blank">Website</a></span></div>


<br><br><div class="gmail_quote">On Wed, Jun 25, 2014 at 2:58 AM, Alan Lord (News) <span dir="ltr"><<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="">On 24/06/14 21:34, Prasad wrote:<br>
<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">
Defining key with same name in either static methods / class methods<br>
block lets you override<br>
the parent's behavior. (World-Clock example<br></div>
<<a href="http://community.vtiger.com/help/vtigercrm/developers/extensions/examples/world-clock-v1.html#step-7-view-javascript" target="_blank">http://community.vtiger.com/<u></u>help/vtigercrm/developers/<u></u>extensions/examples/world-<u></u>clock-v1.html#step-7-view-<u></u>javascript</a>><br>


overrides registerEvents class method).<br>
</blockquote>
<br>
Thanks Prasad,<br>
<br>
One more question then.<br>
<br>
As you say above World_Clock_Js.registerEvents is an override...<br>
<br>
There are many other functions triggered by the registerEvents() method of Vtiger_List_Js which are really important to make the whole ListView work. I'm guessing that this World_Clock_Js override will not also trigger all the registerEvent calls in the Vtiger_List_Js method of the same name?<br>


<br>
If that is the case, what is the point of extending/inheriting the Vtiger_List_Js class in this example?<br>
<br>
Why not just have a new class?<div class="HOEnZb"><div class="h5"><br>
<br>
Thanks<br>
<br>
Al<br>
<br>
<br>
-- <br>
Libertus Solutions<br>
<a href="http://www.libertus.co.uk" target="_blank">http://www.libertus.co.uk</a><br>
<br>
______________________________<u></u>_________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
</div></div></blockquote></div><br></div>