Polymer 1.0: invoking wrong method.

25 views
Skip to first unread message

jahid...@gmail.com

unread,
Jul 19, 2015, 3:51:52 AM7/19/15
to polym...@googlegroups.com
Consider I have two iron pages "page-a" and "page-b". The situation I ran into is, does not matter in which ever page(which are of course components and have their own script) I write a method, if I have a method with same name on another page, then invoking the method from any page does not invoke context's own method. Such examples are observers, ironajax event handling, etc.

   
<more-route-selector>
       
<iron-pages>
         
<section>
             
<page-a></page-a>
         
</section>
         
<section>
             
<page-b></page-b>
         
</section>
     
</more-route-selector>


And lets consider that on both page-a and page-b I have a method like this -

 
  _handleResponse: function(event){
   
}


And I used this method to handle ironajax response. But when I am invoking ironajax request from page-b, then result is not ending up on page-b's _handleResponse method, but ending up on page-a's _handleResponse method.
Reply all
Reply to author
Forward
0 new messages