Skip to content
This repository has been archived by the owner on May 12, 2019. It is now read-only.

strange error in chrome console #70

Closed
tankiJong opened this issue Sep 11, 2015 · 6 comments
Closed

strange error in chrome console #70

tankiJong opened this issue Sep 11, 2015 · 6 comments
Labels
Milestone

Comments

@tankiJong
Copy link

I used the latest version of the theme, and got the following error:

Uncaught TypeError: ((m.event.special[e.origType] || (intermediate value)).handle || e.handler).apply is not a function

jquery-1.11.3.min.js
@Kikobeats
Copy link
Owner

I know, but I don't know why.

When I enter in my web first time, I see the error, but I refresh the same page, the error is not here.

@Kikobeats Kikobeats added the bug label Sep 11, 2015
@Kikobeats Kikobeats added this to the 2.5.2 milestone Sep 11, 2015
@tankiJong
Copy link
Author

I found that, when resizing the page, this error occurs. You may inspect this by resizing the box of 'Review elements'. So I think this is relevant to the js about layout

By the way, the Blog name and Avatar disappeared..

@Kikobeats
Copy link
Owner

I want to release 2.5.2 today with more bugfix and I want to include this, just need to found the bug!

@tankiJong
Copy link
Author

By the way, the Blog name and Avatar disappeared..

@Kikobeats
Copy link
Owner

I found it!

before

el.dataset.device = Uno.device()
$(window).on "resize", Uno.device()
$(window).on "orientationchange", Uno.device()

after

setDevice = -> el.dataset.device = Uno.device()
setDevice()
$(window).on "resize", setDevice
$(window).on "orientationchange", setDevice

or better, just:

el.dataset.device = Uno.device()

@tankiJong
Copy link
Author

perfect! wait for your release!

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants