Ignore:
Timestamp:
Nov 28, 2010, 11:06:31 AM (13 years ago)
Author:
cljosse
Message:

[cl_conflit] fix conflict with rv_gmaps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Autosize/js/conflit.js

    r7884 r7899  
    1313    // jQuery est chargé
    1414}
    15 try {
    16     Conflit = { version: Version };
    17 } catch (e) {
    18 
    19 }
     15
    2016//===================================================
    2117var detect = navigator.userAgent.toLowerCase();
     
    309305        var e_message = e.message;
    310306        var e_stack = e.stack;
     307        var state_ff = "";
    311308        if (e_stack) { //Firefox Opera 3.6
    312309            //=== test fichier source =============
     
    348345                        break;
    349346                    }
    350                     if (Src_Match.match("jQuery")) {
     347                    if (Src_Match.match("jQuery", "gi")) {
    351348                        callstack.push("jQuery");
    352349                        isCallstackPopulated = true;
     350                     
    353351                        break;
    354352                    }
     
    356354            }
    357355            //callstack.shift();
     356            state_ff = callstack.join('\n');
    358357            isCallstackPopulated = false;
    359358        }
     
    391390
    392391        currentFunction = currentFunction.caller;
     392        var fn2 = currentFunction.toString(); // fonction d'appel local (conflit)
    393393        currentFunction = currentFunction.caller;
    394394        //$family
     
    412412            if (fn.match(RegExp("jquery|switchmenu|switchTabs|switchInterface|gally|initializeImageMode", "gi"))) {
    413413                states.push('jQuery');
    414 
     414                break;
    415415            }
    416416            if (fn.match(RegExp("dialog..open", "gi"))) {
    417417                states.push('GMaps');
    418 
     418                break;
    419419            }
    420420            if (fn.match(RegExp("GMaps|applyMap|markupMaps|applyMarkers", "gi"))) {
    421421                states.push('GMaps');
    422 
     422                break;
    423423            }
    424424            //======================
     
    426426
    427427                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"))) {
    431449                states.push('rv_gmaps');
    432 
     450                break;
    433451            }
    434452            //? bubble 
     
    438456
    439457                    states.push('Luciano');
    440 
     458                    break;
    441459                }
    442460            }
     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            }
    443471            if (fn.match(RegExp("(splat|buildFrameWork|photoNext)", "gi"))) {  //luciano
    444472
    445473                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;
    450479
    451480
     
    454483
    455484    }
     485  // state_ff + "|" +
    456486    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
    457495    Fn = all_functions;
    458     return { state: state, fn: callstack.join('\n') };
     496    return { state: state, fn: callstack.join('\n'),fn1:fn2 };
    459497}
    460498//====================================
     
    468506    });
    469507    //==============================================
     508    librairies=[];
    470509    jQuery.extend(jQuery.expr[':'], {
    471510        // Nom du sélecteur personnalisé
     
    502541                    if (a.src.match(RegExp("mootools|pamooramic|luciano", "gi"))) {
    503542                        jQuery.noop;
    504 
     543                        librairies.push(a.src);
    505544                    }
    506545
     
    514553    *
    515554    */
    516 
    517 
    518 
    519 
    520 
    521 
    522555})(jQuery);
    523556
     
    539572
    540573}
    541 if (typeof ($fn) != "function") {
    542     $.fn = function (options) {
    543         return jQuery.fn(options);
    544     }
    545 
    546 
    547 }
     574
    548575if (typeof ($.get) != "function") {
    549576    $.get = function (options) {
     
    555582$_ = $;
    556583function save_framework(page) {
    557     Conflit = { version: Version };
     584    try {
     585        Conflit = { version: Version, name: cl_plugin };
     586    } catch (e) {
     587
     588    }
     589   
    558590    $_ = $;
    559591    return
Note: See TracChangeset for help on using the changeset viewer.