Changeset 7895 for extensions/cl_conflit/js
- Timestamp:
- Nov 27, 2010, 6:14:46 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/cl_conflit/js/conflit.js
r7880 r7895 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(); … … 145 141 } 146 142 } else if (element == document) { 143 144 ret_element = jQuery(element); 145 return ret_element; 146 147 148 } else if (element == window) { 147 149 148 150 ret_element = jQuery(element); … … 304 306 var e_message = e.message; 305 307 var e_stack = e.stack; 308 var state_ff = ""; 306 309 if (e_stack) { //Firefox Opera 3.6 307 310 //=== test fichier source ============= … … 343 346 break; 344 347 } 345 if (Src_Match.match("jQuery" )) {348 if (Src_Match.match("jQuery", "gi")) { 346 349 callstack.push("jQuery"); 347 350 isCallstackPopulated = true; 351 348 352 break; 349 353 } … … 351 355 } 352 356 //callstack.shift(); 357 state_ff = callstack.join('\n'); 353 358 isCallstackPopulated = false; 354 359 } … … 386 391 387 392 currentFunction = currentFunction.caller; 393 var fn2 = currentFunction.toString(); // fonction d'appel local (conflit) 388 394 currentFunction = currentFunction.caller; 389 395 //$family … … 407 413 if (fn.match(RegExp("jquery|switchmenu|switchTabs|switchInterface|gally|initializeImageMode", "gi"))) { 408 414 states.push('jQuery'); 409 415 break; 410 416 } 411 417 if (fn.match(RegExp("dialog..open", "gi"))) { 412 418 states.push('GMaps'); 413 419 break; 414 420 } 415 421 if (fn.match(RegExp("GMaps|applyMap|markupMaps|applyMarkers", "gi"))) { 416 422 states.push('GMaps'); 417 423 break; 418 424 } 419 425 //====================== … … 421 427 422 428 states.push('paMOOramics'); 423 429 break; 424 430 } 425 431 if (fn.match(RegExp("observe|responder|stopobserving|fireContentLoadedEvent", "gi"))) { 426 432 states.push('rv_gmaps'); 427 433 break; 428 434 } 429 435 //? bubble … … 433 439 434 440 states.push('Luciano'); 435 441 break; 436 442 } 437 443 } 444 // "window.fireEvent('domready')" 445 Expression = new RegExp("window.fireEvent", "gi") 446 if (fn.match(Expression)) { //luciano 447 // "window.fireEvent('domready')" 448 Expression = new RegExp("window.fireEvent..domready..", "gi") 449 if (fn.match(Expression)) { 450 states.push('Luciano'); 451 break; 452 } 453 } 438 454 if (fn.match(RegExp("(splat|buildFrameWork|photoNext)", "gi"))) { //luciano 439 455 440 456 states.push('Luciano'); 441 442 } 443 444 if (all_functions.length > 50) break; 457 break; 458 } 459 460 if (all_functions.length > 50) 461 break; 445 462 446 463 … … 449 466 450 467 } 468 // state_ff + "|" + 451 469 state = states.join('\n'); 470 if (state == "") 471 state = state_ff; 472 452 473 Fn = all_functions; 453 474 return { state: state, fn: callstack.join('\n') }; … … 463 484 }); 464 485 //============================================== 486 librairies=[]; 465 487 jQuery.extend(jQuery.expr[':'], { 466 488 // Nom du sélecteur personnalisé … … 497 519 if (a.src.match(RegExp("mootools|pamooramic|luciano", "gi"))) { 498 520 jQuery.noop; 499 521 librairies.push(a.src); 500 522 } 501 523 … … 534 556 535 557 } 536 if (typeof ($fn) != "function") { 537 $.fn = function (options) { 538 return jQuery.fn(options); 539 } 540 541 542 } 558 543 559 if (typeof ($.get) != "function") { 544 560 $.get = function (options) { … … 550 566 $_ = $; 551 567 function save_framework(page) { 552 Conflit = { version: Version }; 568 try { 569 Conflit = { version: Version, name: cl_plugin }; 570 } catch (e) { 571 572 } 573 553 574 $_ = $; 554 575 return
Note: See TracChangeset
for help on using the changeset viewer.