Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291227

Toolbar.js isn't defined in hook_library()

$
0
0

As a logged in and administrator user, with the toolbar module enabled, I receive the following error on my Firefox error console upon page load:

Timestamp: 3/3/13 1:09:44 PM
Error: TypeError: $(...).once is not a function
Source File: http://local/modules/toolbar/toolbar.js?mj3mjx
Line:
12

Line 12 of toolbar.js is:

$('#toolbar', context).once('toolbar', Drupal.toolbar.init);

When I log-out and become an anonymous user, with the Omega theme enabled, I get this error instead:

Timestamp: 3/3/13 1:17:44 PM
Error: TypeError: $(...).once is not a function
Source File: http://local/sites/all/themes/omega/omega/js/omega-mediaqueries.js?mj3mj... 94

Line 94 of omega-mediaqueries.js is:

$('body', context).once('omega-mediaqueries', function () {

Drupal version 7.20
With jquery_update on and off, it doesn't matter what version of jQuery is used. This error is present on 1.4.4 (stock jquery) through 1.8.

Joe


Viewing all articles
Browse latest Browse all 291227

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>