Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Kurt on Jan 14, 2009 19:39
open dhtmlx forum
Is there anything wrong or error will be occurred after modified the method in the dhtmlxcombo.js ?

Hi team

The original method in the dhtmlxcombo.js is like this.

dhtmlXCombo.prototype.selectOption = function(ind,filter,conf){
        if (arguments.length<3) conf=true;
         this.unSelectOption();

         …… 


          /*Event*/
         this.callEvent("onSelectionChange",[]);

 }

If I modified the mothod like this , Is there anything wrong or error will be occurred after modified it ?

dhtmlXCombo.prototype.selectOption = function(ind,filter,conf){

          /*Event*/
         this.callEvent("onSelectionChange",[]);


        if (arguments.length<3) conf=true;
         this.unSelectOption();

        …… 
 }

thanks.

Answer posted by Support on Jan 15, 2009 02:32
It will not cause any side effects
onSelectionChange event not used in inner logic ( it made for custom code only ) , so you can freely change its position in code or fully remove it without any consequences
Answer posted by Kurt on Jan 15, 2009 03:43
Thanks a lot.