-
Notifications
You must be signed in to change notification settings - Fork 123
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
Uncaught TypeError: Cannot read property 'apply' of undefined #47
Comments
That's odd. On line 316, Are you running IE8 by any chance? First, try two things:
Also, the page you linked in you message doesn't load EasyButton, if you want feedback on your code, please put together a minimal example the reproduces the issue and I'll be happy to help further! |
Hi, I am using this with Prototype.js (v1.6.1) as part of Tapestry 5.3.8 java web application.
Any idea why this could be? I am stuck with Prototype for now so have to find a workaround. |
This is pretty odd. sometime this week i'll take a closer look with specific attention to prototype. Have you had any luck in finding a workaround? |
No I haven't. |
Hello |
Try using As an extension of |
I have the same error using PhantomJS to open my webpage (L.Control.EasyButton and L.easyButton) |
@atstp using new L.Control.EasyButton - however, I'm unsure of how I'm to pass the font awesome . icon as well as the callback |
When I run the code - it errors on this: it doesn't know what L.Control.EasyButton is
When I attempt to instead instantiate a new L.Control.EasyButton() it only takes the following:
how, this doesn't match the documentation, ie. where do I define the icon, etc... ie. my code looks like this: const btn = L.easyButton('fa fa-erase', () -> {...}, 'Clear Map'); so if I was to use new L.Control.EasyButton( ? where is icon, function and text ?) |
Can you please help.
I am trying to use Easybutton in this leaflet solution: [http://dail.aws.dk/]
It uses jQuery to swith between 2 pages (address search and the leaflet map).
When I try to use Easybutton I get this error: "Uncaught TypeError: Cannot read property 'apply' of undefined" (easy-button.js:316).
Best regard
Jhv
The text was updated successfully, but these errors were encountered: