@@ -296,9 +296,9 @@ test("type", function() {
296296} ) ;
297297
298298asyncTest ( "isPlainObject" , function ( ) {
299- expect ( 16 ) ;
299+ expect ( 15 ) ;
300300
301- var pass , iframe , doc , c , extended ,
301+ var pass , iframe , doc ,
302302 fn = function ( ) { } ;
303303
304304 // The use case that we want to match
@@ -360,45 +360,6 @@ asyncTest("isPlainObject", function() {
360360 } catch ( e ) {
361361 window . iframeDone ( Object , "iframes not supported" ) ;
362362 }
363-
364- // #13571
365- function C ( ) { }
366- C . prototype = {
367- x : 1
368- } ;
369- c = new C ( ) ;
370-
371- extended = jQuery . extend ( true , { } , {
372- target : c
373- } ) ;
374-
375- strictEqual (
376- extended . target , c ,
377- "Instances, whose constructor defined its prototype by assigning a plain object, " +
378- "will lie about their true identity to preserve a broken user-code expectation"
379- ) ;
380- //
381- // The test above is broken and tests a broken feature, to support a misinformed
382- // assumption, as documented here:
383- //
384- // http://bugs.jquery.com/ticket/13571#comment:4
385- //
386- // It will not pass if the object being assigned as the prototype
387- // has no properties:
388- //
389- // function C() {}
390- // C.prototype = {};
391- // c = new C();
392-
393- // extended = jQuery.extend( true, {}, {
394- // target: c
395- // });
396-
397- // strictEqual( extended.target, c, "Undetectable, will fail every time" );
398- //
399- // The solution is to reset the constructor property of your plain object prototypes.
400- //
401- //
402363} ) ;
403364
404365test ( "isFunction" , function ( ) {
0 commit comments