https://bugzilla.wikimedia.org/show_bug.cgi?id=35072

       Web browser: ---
             Bug #: 35072
           Summary: TypeError: Cannot convert
                    '$.collapsibleTabs.getSettings( $(
                    data.collapsedContainer
                    ).children(data.collapsible+":first" ) )' to object
           Product: MediaWiki
           Version: 1.19
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: Unprioritized
         Component: Vector skin
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
    Classification: Unclassified
   Mobile Platform: ---


From
https://de.wikipedia.org/w/index.php?title=Benutzer:Ireas/d%C3%BCp-helperfunctions-monobook.js&oldid=99977855
 right after this line is executed:
     $("div#p-cactions ul").append(li);

it produces this strange error on this page:
https://de.wikipedia.org/wiki/Datei:Logo_African_Pygmy_Goat.png?debug=true


[08.03.2012 22:27:47] JavaScript -
https://de.wikipedia.org/wiki/Datei:Logo_African_Pygmy_Goat.png?debug=true
Inline script thread
Uncaught exception: TypeError: Cannot convert '$.collapsibleTabs.getSettings(
$( data.collapsedContainer ).children(
                                data.collapsible+":first" ) )' to object
Error thrown at line 84, column 4 in <anonymous function: handleResize>() in
https://de.wikipedia.org/w/resources-1.19/resources/jquery/jquery.collapsibleTabs.js:
    if( $( data.collapsedContainer + ' ' + data.collapsible ).length > 0
called via Function.prototype.call() from line 658, column 5 in <anonymous
function: each>(object, callback, args) in
https://bits.wikimedia.org/de.wikipedia.org/load.php?debug=true&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20120228T025649Z:
    if ( callback.call( object[ i ], i, object[ i++ ] ) === false )
called from line 271, column 2 in <anonymous function: each>(callback, args) in
https://bits.wikimedia.org/de.wikipedia.org/load.php?debug=true&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20120228T025649Z:
    return jQuery.each( this, callback, args );
called from line 70, column 3 in <anonymous function: handleResize>(e) in
https://de.wikipedia.org/w/resources-1.19/resources/jquery/jquery.collapsibleTabs.js:
    $.collapsibleTabs.instances.each( function() {
called from line 30, column 2 in <anonymous function:
$.fn.collapsibleTabs>(options) in
https://de.wikipedia.org/w/resources-1.19/resources/jquery/jquery.collapsibleTabs.js:
    $.collapsibleTabs.handleResize();
called from line 89, column 1 in <anonymous function>($) in
https://bits.wikimedia.org/w/extensions-1.19/Vector/modules/ext.vector.collapsibleTabs.js:
    $( '#p-views ul' ).bind( 'beforeTabCollapse', function() {
called via Function.prototype.apply() from line 1046, column 4 in <anonymous
function: jQuery.Callbacks>(context, args) in
https://bits.wikimedia.org/de.wikipedia.org/load.php?debug=true&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20120228T025649Z:
    if ( list[ firingIndex ].apply( context, args ) === false &&
flags.stopOnFalse )
called from line 1081, column 6 in <anonymous function: add>() in
https://bits.wikimedia.org/de.wikipedia.org/load.php?debug=true&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20120228T025649Z:
    fire( memory[ 0 ], memory[ 1 ] );
called from line 279, column 2 in <anonymous function: ready>(fn) in
https://bits.wikimedia.org/de.wikipedia.org/load.php?debug=true&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20120228T025649Z:
    readyList.add( fn );
called from line 198, column 3 in <anonymous function: init>(selector, context,
rootjQuery) in
https://bits.wikimedia.org/de.wikipedia.org/load.php?debug=true&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20120228T025649Z:
    return rootjQuery.ready( selector );

---------

the function should add a  tab to the tab page or file pages as it does on
Monobook and with *my* FF10 on Vector. The above error is from Vector in Opera
11.6. Strangely, another user of this script uses FF10 and has the same error.

If debug=true is not added the script just fails and no error is shown - bad
behaviour. I blame Ressource Loader. ;-)

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to