[CLOSED] Discrepancies in JavaScript function signatures

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [CLOSED] Discrepancies in JavaScript function signatures

    There seems to be some discrepancies on the function signatures that are shown (arguments list) between your:
    AND
    Your 4.2.2 Examples Source code https://examples4.ext.net/


    Below are some examples that I have come across during our upgrade project (1.2 to 4.2.2)
    (I am following your samples source code since it seems to more accurately reflect the argument names for these functions)

    DataView -> ItemClick
    Your Listeners/Arguments Utility shows function signature as:
    DataView ->  ItemClick  =  function ( item, record, node, index, e )
    Your Samples Code shows a more accurate arguments list:
    https://examples4.ext.net/#/DataView/Advanced/Grouping/
    https://examples4.ext.net/#/DataView/Advanced/Report/
    <script>
      var itemClick = function (view, record, item, index, e) {  }
    	  	  
      <ext:DataView
    	<Listeners>
    		<ItemClick Fn="itemClick" />
    		<Refresh Handler="this.el.select('.item-wrap', true).addClsOnOver('x-view-over');" Delay="100" />
    	</Listeners>


    TreePanel -> ItemContextMenu
    Your Listeners/Arguments Utility shows function signature as:
    TreePanel ->  ItemContextMenu =  function ( item, record, node, index, e )
    Your Samples Code shows a more accurate arguments list:
    https://examples4.ext.net/#/TreePane...d/Remote_Mode/
    <script>
    <script>
    	var showMenu = function (view, node, item, index, e) {
    
    <ext:TreePanel>
    	<Listeners>
    		<ItemContextMenu Fn="showMenu" StopEvent="true" />
    		<RemoteActionRefusal Handler="Ext.Msg.alert('Action refusal', e.message);" />
    	</Listeners>

    There a lot more than just these two examples.

    NOTE: When in a script debugger breakpoint I can see in the call-stack what seems to be a generic '*fire'" function that shows the same arguments as the Listeners Utility - but the Source Code samples that I find seem to sometimes transpose the names of the arguments to more correctly align with the actual parameter content.

    Problem is that the source code samples do not encompass all of the different function listeners for most of the components - so if I cannot find it in the source code samples (correctly aligned), I have to follow the Utility's given signature. But, to reiterate, I am finding in some instances how the argument name does not always truly corresponds with the actual contents of the argument.

    Any advise on this would be appreciated.

    Rafaelcjr now posting under Advance Loan Tech.
    Last edited by fabricio.murta; Jul 17, 2017 at 4:52 PM.

Similar Threads

  1. [CLOSED] Get javascript function's value
    By multimediait in forum 2.x Legacy Premium Help
    Replies: 6
    Last Post: Oct 24, 2014, 10:20 AM
  2. Calling JavaScript function
    By UserClarion in forum 1.x Help
    Replies: 2
    Last Post: Dec 30, 2011, 10:23 AM
  3. Replies: 1
    Last Post: May 14, 2011, 3:52 PM
  4. How i can html of tooltip in javascript function
    By vucuongkg in forum 1.x Help
    Replies: 1
    Last Post: Jun 17, 2010, 4:05 PM
  5. [CLOSED] The javascript function in not fire?
    By Etisbew in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Sep 09, 2009, 10:12 AM

Tags for this Thread

Posting Permissions