Changeset 7899 for extensions/Autosize/js/conflit.js
- Timestamp:
- Nov 28, 2010, 11:06:31 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/js/conflit.js
r7884 r7899 13 13 // jQuery est chargé 14 14 } 15 try { 16 Conflit = { version: Version }; 17 } catch (e) { 18 19 } 15 20 16 //=================================================== 21 17 var detect = navigator.userAgent.toLowerCase(); … … 309 305 var e_message = e.message; 310 306 var e_stack = e.stack; 307 var state_ff = ""; 311 308 if (e_stack) { //Firefox Opera 3.6 312 309 //=== test fichier source ============= … … 348 345 break; 349 346 } 350 if (Src_Match.match("jQuery" )) {347 if (Src_Match.match("jQuery", "gi")) { 351 348 callstack.push("jQuery"); 352 349 isCallstackPopulated = true; 350 353 351 break; 354 352 } … … 356 354 } 357 355 //callstack.shift(); 356 state_ff = callstack.join('\n'); 358 357 isCallstackPopulated = false; 359 358 } … … 391 390 392 391 currentFunction = currentFunction.caller; 392 var fn2 = currentFunction.toString(); // fonction d'appel local (conflit) 393 393 currentFunction = currentFunction.caller; 394 394 //$family … … 412 412 if (fn.match(RegExp("jquery|switchmenu|switchTabs|switchInterface|gally|initializeImageMode", "gi"))) { 413 413 states.push('jQuery'); 414 414 break; 415 415 } 416 416 if (fn.match(RegExp("dialog..open", "gi"))) { 417 417 states.push('GMaps'); 418 418 break; 419 419 } 420 420 if (fn.match(RegExp("GMaps|applyMap|markupMaps|applyMarkers", "gi"))) { 421 421 states.push('GMaps'); 422 422 break; 423 423 } 424 424 //====================== … … 426 426 427 427 states.push('paMOOramics'); 428 429 } 430 if (fn.match(RegExp("observe|responder|stopobserving|fireContentLoadedEvent", "gi"))) { 428 break; 429 } 430 //window_1290934905697_top 431 if (fn.match(RegExp("window_|WindowUtilities", "gi"))) { 432 states.push('rv_gmaps'); 433 break; 434 } 435 if (fn.match(RegExp("that.overlayOpacity", "gi"))) { 436 states.push('rv_gmaps'); 437 break; 438 } 439 if (fn.match(RegExp("For backward compatibility like win", "gi"))) { 440 states.push('rv_gmaps'); 441 break; 442 } 443 if (fn.match(RegExp("overlay_modal|HTMLDivElement|constraintPad", "gi"))) { 444 states.push('rv_gmaps'); 445 break; 446 } 447 448 if (fn.match(RegExp("__content|__method|observe|responder|stopobserving|fireContentLoadedEvent", "gi"))) { 431 449 states.push('rv_gmaps'); 432 450 break; 433 451 } 434 452 //? bubble … … 438 456 439 457 states.push('Luciano'); 440 458 break; 441 459 } 442 460 } 461 // "window.fireEvent('domready')" 462 Expression = new RegExp("window.fireEvent", "gi") 463 if (fn.match(Expression)) { //luciano 464 // "window.fireEvent('domready')" 465 Expression = new RegExp("window.fireEvent..domready..", "gi") 466 if (fn.match(Expression)) { 467 states.push('Luciano'); 468 break; 469 } 470 } 443 471 if (fn.match(RegExp("(splat|buildFrameWork|photoNext)", "gi"))) { //luciano 444 472 445 473 states.push('Luciano'); 446 447 } 448 449 if (all_functions.length > 50) break; 474 break; 475 } 476 477 if (all_functions.length > 50) 478 break; 450 479 451 480 … … 454 483 455 484 } 485 // state_ff + "|" + 456 486 state = states.join('\n'); 487 if (state == "") { 488 if (DEBUG == "true") { 489 Fn = all_functions.join('\n'); 490 alert("non trouvé:" + Fn + "\n" + fn2 + "\n Firefox:" + state_ff); 491 } 492 state = state_ff; 493 } 494 457 495 Fn = all_functions; 458 return { state: state, fn: callstack.join('\n') };496 return { state: state, fn: callstack.join('\n'),fn1:fn2 }; 459 497 } 460 498 //==================================== … … 468 506 }); 469 507 //============================================== 508 librairies=[]; 470 509 jQuery.extend(jQuery.expr[':'], { 471 510 // Nom du sélecteur personnalisé … … 502 541 if (a.src.match(RegExp("mootools|pamooramic|luciano", "gi"))) { 503 542 jQuery.noop; 504 543 librairies.push(a.src); 505 544 } 506 545 … … 514 553 * 515 554 */ 516 517 518 519 520 521 522 555 })(jQuery); 523 556 … … 539 572 540 573 } 541 if (typeof ($fn) != "function") { 542 $.fn = function (options) { 543 return jQuery.fn(options); 544 } 545 546 547 } 574 548 575 if (typeof ($.get) != "function") { 549 576 $.get = function (options) { … … 555 582 $_ = $; 556 583 function save_framework(page) { 557 Conflit = { version: Version }; 584 try { 585 Conflit = { version: Version, name: cl_plugin }; 586 } catch (e) { 587 588 } 589 558 590 $_ = $; 559 591 return
Note: See TracChangeset
for help on using the changeset viewer.