I just get this error in the dev version 7.x-1.9

Uncaught TypeError: Object [object Object] has no method 'sfsmallscreen' ------------------superfish.js:31

Comments

eugenesia’s picture

If you have just upgraded from an earlier version, you need to add the path to sfsmallscreen.js manually. Go to the Superfish module configuration page at admin/config/user-interface/superfish , and add to the end of the list of the library files:
sites/all/libraries/superfish/sfsmallscreen.js

lanny heidbreder’s picture

I get a similar error:

Uncaught TypeError: Object [object Object] has no method 'supersubs'

This error is triggered in a small bit of bare JavaScript in the page, not from an external file:

<script type="text/javascript">
<!--//--><![CDATA[//><!--
jQuery(function(){
jQuery('#superfish-1').supersubs({minWidth: 12, maxWidth: 27, extraWidth: 1}).superfish({
animation: {opacity:'show'},
speed: 1,
autoArrows: false,
dropShadows: true});
});
//--><!]]>
</script>

Importantly, the supersubs file IS being included on the page. It is in the list of library files and the script tag is being written to the page as it should.

jordan8037310’s picture

I have done as #1 suggested and manually added the path to the sfsmallscreen.js to no avail. Something else must be amiss here. As #2 mentions, the sfsmallscreen.js is included on the page but it still throws this error.

Help?

mehrpadin’s picture

Hey there,

Lanny (#2) please upgrade to the development release or the v1.9-beta5.

Jordan, he's using v1.8, are you too?

jordan8037310’s picture

Hey mehrpadin, Yes, I was using v1.8 when I got that error. I went ahead and upgraded to dev as that seemed like the simplest way to resolve the issue and get my site to stop throwing java errors.

mehrpadin’s picture

Category: bug » support
Status: Active » Closed (works as designed)

:)