Skip to content

[0.8] Unexpected token ] #1298

Closed
Closed
@robdodson

Description

Not sure why I'm getting this error, maybe it's PEBCAK, but nothing is jumping out at me as wrong in my element definition.

Element definition:

<link rel="import" href="../../bower_components/polymer/polymer.html">

<dom-module id="dnews-story-comments">
  <style>
    :host {
      display: inline-block;
    }
  </style>
  <template>
    <span>[[votes]] points and</span>
  </template>
</dom-module>

<script>

  Polymer({

    is: 'dnews-story-comments',

    properties: {
      votes: Number
    }

  });

</script>

Usage:

<dnews-story-comments votes="2"></dnews-story-comments>

Error:

(function(old
/**/) {
    this._nodes[0].textContent = this._data.points]] points a;
})

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions