itsthatguy / itsthatguy/gridwax

TypeError: $ is not a function this.pageWidth = $(document).width();

Open
#12 4 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
CoffeeScript
Stars
82
Forks
14
PR merge metrics
No merged PRs in 30d

Description

On the site I'm working on jQuery is not available on $, it is available on jQuery. I did see that you have code to pull in jQuery but that isn't working for me. Drupal on all sites, for instance, keeps jQuery away from $ and on jQuery

TypeError: $ is not a function

this.pageWidth = $(document).width();
gridwax.js (line 32)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at gridwax.js line 32 and inspect how jQuery is loaded and referenced. Reproduce the error on a Drupal-style page where jQuery is available as jQuery but not as $, then verify that the page-width initialization completes without the TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
coffeescript, jquery
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.