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

classList not working anymore #518

Closed
sepans opened this issue May 28, 2014 · 2 comments
Closed

classList not working anymore #518

sepans opened this issue May 28, 2014 · 2 comments

Comments

@sepans
Copy link

sepans commented May 28, 2014

The classList attribute stopped working after I updated bower_components. I swapped the polymer and platform directories inside bower_component with the old ones to confirm that it is it.

I have very simple usages like:

this.$.container.classList.add('th-transition-slide'); // container is just a div inside tag

I am getting:
Uncaught TypeError: undefined is not a function Element.js:104
classList Element.js:104
Polymer.init th-reveal.js:14
Polymer.ready th-reveal.js:6
d.makeElementReady base.js:78
...

this is the build.log of the working version:

BUILD LOG

Build Time: 2014-04-18T13:25:05

NODEJS INFORMATION

nodejs: v0.10.26
grunt: 0.4.4
grunt-audit: 0.0.3
grunt-concat-sourcemap: 0.4.1
grunt-contrib-concat: 0.4.0
grunt-contrib-uglify: 0.4.0
grunt-contrib-yuidoc: 0.5.2
grunt-karma: 0.8.2
karma: 0.12.2
chai: 1.9.1
karma-chrome-launcher: 0.0.2
karma-mocha: 0.1.3
karma-ie-launcher: 0.1.5
karma-crbot-reporter: 0.0.4
karma-script-launcher: 0.1.0
mocha: 1.18.2
karma-safari-launcher: 0.1.1
karma-firefox-launcher: 0.1.3
Platform: 0.2.3

REPO REVISIONS

CustomElements: 9b997ca97533147f5f17bd666c06e5fa1a13219e
HTMLImports: 1c796ecc75d8895f50e65160c53f00a875cb9d2b
NodeBind: c47bc1b40d1cf0123b29620820a7111471e83ff3
ShadowDOM: ea4371633cd54dc8f65245d3c65268028bc3e2aa
TemplateBinding: 1cee027fe67680c93ff2b6b070d32708226f6a83
WeakMap: a0947a9a0f58f5733f464755c3b86de624b00a5d
observe-js: c57f0e04f857fee6889468d959ab8233df1d5b31
platform-dev: c90023a27c38f0e62123e07bdc0639b5336396ee

BUILD HASHES

build/platform.js: 1238c0a208ca35d679efbf22cd0ad1d1b266464d

and this is the build.log of new one:

BUILD LOG

Build Time: 2014-05-27T16:52:25

NODEJS INFORMATION

nodejs: v0.10.28
chai: 1.9.1
grunt: 0.4.4
grunt-audit: 0.0.3
grunt-concat-sourcemap: 0.4.1
grunt-contrib-concat: 0.4.0
grunt-contrib-uglify: 0.4.0
grunt-contrib-yuidoc: 0.5.2
grunt-karma: 0.8.3
karma: 0.12.14
karma-crbot-reporter: 0.0.4
karma-firefox-launcher: 0.1.3
karma-ie-launcher: 0.1.5
karma-mocha: 0.1.3
karma-safari-launcher: 0.1.1
karma-script-launcher: 0.1.0
mocha: 1.18.2
Platform: 0.3.0

REPO REVISIONS

CustomElements: 107ebde1b17e08fc56a545f51c6f081151e52d24
HTMLImports: 1d3508510cb2d47c03cc463c5b1294416ee310f3
NodeBind: c47bc1b40d1cf0123b29620820a7111471e83ff3
ShadowDOM: 6a06e8468689a5a2f84293bf22c1be1ea1ca44d6
TemplateBinding: 3168309eb131921f08e3a74e9d7197c903762bda
WeakMap: a0947a9a0f58f5733f464755c3b86de624b00a5d
observe-js: d99eff16a4d5e2d7f55ebb2a7103a160ec1fbd6e
platform-dev: 42aff7d7d5ff6077abb8d0735941485e1d3bdadd

BUILD HASHES

build/platform.js: 3612e5e0cd30cfcd62e87fef5cfeb5edcb0d634f

Thanks

@mvaldetaro
Copy link

@sepans Try this:

(this.shadowRoot.container.classList.add('th-transition-slide');)

@arv
Copy link
Contributor

arv commented May 28, 2014

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

No branches or pull requests

3 participants