title: Polymer calling functions in script
body: <p>I am trying to write the polymer app.</p>
  
  <p>The problem arises in the code below, while calling updateItems in onLogin.</p>
  
  <p>It does no recognize the function.</p>
  
  <p>I tried this.updateItems too</p>
  
  <pre><code>  Polymer({
  
    is: 'my-view1',
  
    updateItems : function(snapshot) {...},
    onLogin : function(user) {
        this.ref = ... ;
        this.ref.on('value', function(snapshot) {
            updateItems(snapshot);
    });
    },
  });
  </code></pre>
  
  <p>Any suggestion how to call updateItems.</p>
  
  <p>Thanks.</p>