Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
  <meta charset="utf-8">
  <title>notifySplices fails with arrays of primitives</title>
  <base href="//polygit.org/components/">
  <script src="webcomponentsjs/webcomponents-lite.js"></script>
  <link rel="import" href="polymer/polymer.html">
<body>
  <dom-bind id="domBind">
  <template>
    <ul>
      <template is="dom-repeat" items="{{array}}">
        <li>{{item}}</li>
      </template>
    </ul>
  </template>
    </dom-bind>
  <p>You should see 0 and 1. Which then should changed to 1 and 2 respectively.<p>
    <script>
        var domBind = document.getElementById('domBind');
        domBind.array = [0,1]
        setTimeout(function(){
          domBind.splice("array", 1, 1, 2);
          domBind.splice("array", 0, 1, 1);
        }, 1000);
console.log('Polymer.version: ' + Polymer.version);
    </script>
</body>
Output

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers