Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[0.9.0-rc.1] Cannot set property 'touchAction' of undefinedGestures.setTouchAction #1533

Closed
harsimranmaan opened this issue May 14, 2015 · 1 comment
Assignees
Labels

Comments

@harsimranmaan
Copy link

Installed polymer using bower (trying to port existing app from 0.5). The html page(structure retained) looks like

<!DOCTYPE html>

<html>

  <head>
    <meta http-equiv="Content-Security-Policy" content="default-src 'self' http://*.googleapis.com https://*.googleapis.com https://*.gstatic.com http://*.gstatic.com data: gap: https://ssl.gstatic.com 'unsafe-inline' 'unsafe-eval'; media-src *; ">
    <meta name="format-detection" content="telephone=no">
    <meta name="msapplication-tap-highlight" content="no">
    <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
    <script type="text/javascript" src="bower_components/webcomponentsjs/webcomponents.min.js"></script>
    <link rel="stylesheet" type="text/css" href="css/index.css">
    <link rel="import" href="bower_components/paper-drawer-panel/paper-drawer-panel.html">
    <link rel="import" href="bower_components/paper-header-panel/paper-header-panel.html">
    <link rel="import" href="bower_components/paper-toolbar/paper-toolbar.html">
    <link rel="import" href="bower_components/paper-menu/paper-menu.html">
    <link rel="import" href="bower_components/paper-item/paper-item.html">
    <link rel="import" href="bower_components/paper-tabs/paper-tabs.html">
<link rel="import" href="bower_components/iron-pages/iron-pages.html">
    <title>T</title>
  </head>

  <body unresolved fullbleed layout vertical>
    <paper-drawer-panel>
      <paper-header-panel drawer>
        <paper-toolbar>
          <span class="menuTitle">yd</span>
        </paper-toolbar>
        <paper-menu id="menu" valueattr="data-menulink">
          <paper-item icon="home" data-menulink="home" label="Home"></paper-item>
          <paper-item icon="alarm-add" data-menulink="book" label="Book Appointment"></paper-item>
          <paper-item icon="explore" data-menulink="direction" label="Directions"></paper-item>
          <paper-item icon="star" data-menulink="review" label="Reviews"></paper-item>
          <paper-item icon="info" data-menulink="about" label="About Us"></paper-item>
          <paper-item icon="perm-phone-msg" data-menulink="contact" label="Contact Us"></paper-item>
        </paper-menu>
      </paper-header-panel>
      <paper-header-panel main>
        <paper-toolbar class="tall">
          <paper-icon-button icon="menu" iron-drawer-toggle></paper-icon-button>
          <div flex>
            T</div>
        </paper-toolbar>

        <iron-pages valueattr="data-menulink">
          <section data-menulink="home">
            <p>dw</p>
          </section>
          <section data-menulink="book">
            Book
          </section>
          <section data-menulink="direction">
          </section>
          <section data-menulink="review">
            Reviews
          </section>
          <section data-menulink="about">
            About
          </section>
          <section data-menulink="contact">
            Contact
          </section>
        </iron-pages>
      </paper-header-panel>
    </paper-drawer-panel>
    <script type="text/javascript" src="cordova.js"></script>
    <script type="text/javascript" src="js/index.js"></script>
  </body>

</html>

Stack trace in chrome:
Uncaught TypeError: Cannot set property 'touchAction' of undefinedGestures.setTouchAction @ gestures.html:222Polymer.Base._addFeature.setScrollDirection @ gestures.html:437Polymer._responsiveChange @ paper-drawer-panel.html:567Polymer.forceNarrowChanged @ paper-drawer-panel.html:576Polymer.Base.extend._observerEffect @ effects.html:51(anonymous function) @ accessors.html:71Polymer.Bind._modelApi._effectEffects @ accessors.html:67Polymer.Bind._modelApi._propertySet @ accessors.html:60Polymer.Base._addFeature._applyConfig @ configure.html:152Polymer.Base._addFeature._afterClientsReady @ configure.html:135Polymer.Base._addFeature._ready @ ready.html:98Polymer.Base._addFeature._tryReady @ ready.html:85Polymer.Base._addFeature._initFeatures @ polymer.html:76Polymer.Base.createdCallback

@dfreedm
Copy link
Member

dfreedm commented May 22, 2015

This was fixed in dde66bc, which is part of v0.9.0 release.
When I sync to 0.9.0, this error does not reproduce.

Please make sure you update to the latest 0.9 release.

@dfreedm dfreedm closed this as completed May 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants