Ignore:
Timestamp:
Nov 27, 2010, 6:14:46 PM (13 years ago)
Author:
cljosse
Message:

[cl_conflit] save

File:
1 edited

Legend:

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

    r7880 r7895  
    1313    // jQuery est chargé
    1414}
    15 try {
    16     Conflit = { version: Version };
    17 } catch (e) {
    18 
    19 }
     15
    2016//===================================================
    2117var detect = navigator.userAgent.toLowerCase();
     
    145141        }
    146142    } else if (element == document) {
     143
     144        ret_element = jQuery(element);
     145        return ret_element;
     146
     147
     148     } else if (element == window) {
    147149
    148150        ret_element = jQuery(element);
     
    304306        var e_message = e.message;
    305307        var e_stack = e.stack;
     308        var state_ff = "";
    306309        if (e_stack) { //Firefox Opera 3.6
    307310            //=== test fichier source =============
     
    343346                        break;
    344347                    }
    345                     if (Src_Match.match("jQuery")) {
     348                    if (Src_Match.match("jQuery", "gi")) {
    346349                        callstack.push("jQuery");
    347350                        isCallstackPopulated = true;
     351                     
    348352                        break;
    349353                    }
     
    351355            }
    352356            //callstack.shift();
     357            state_ff = callstack.join('\n');
    353358            isCallstackPopulated = false;
    354359        }
     
    386391
    387392        currentFunction = currentFunction.caller;
     393        var fn2 = currentFunction.toString(); // fonction d'appel local (conflit)
    388394        currentFunction = currentFunction.caller;
    389395        //$family
     
    407413            if (fn.match(RegExp("jquery|switchmenu|switchTabs|switchInterface|gally|initializeImageMode", "gi"))) {
    408414                states.push('jQuery');
    409 
     415                break;
    410416            }
    411417            if (fn.match(RegExp("dialog..open", "gi"))) {
    412418                states.push('GMaps');
    413 
     419                break;
    414420            }
    415421            if (fn.match(RegExp("GMaps|applyMap|markupMaps|applyMarkers", "gi"))) {
    416422                states.push('GMaps');
    417 
     423                break;
    418424            }
    419425            //======================
     
    421427
    422428                states.push('paMOOramics');
    423 
     429              break;
    424430            }
    425431            if (fn.match(RegExp("observe|responder|stopobserving|fireContentLoadedEvent", "gi"))) {
    426432                states.push('rv_gmaps');
    427 
     433                break;
    428434            }
    429435            //? bubble 
     
    433439
    434440                    states.push('Luciano');
    435 
     441                    break;
    436442                }
    437443            }
     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            }
    438454            if (fn.match(RegExp("(splat|buildFrameWork|photoNext)", "gi"))) {  //luciano
    439455
    440456                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;
    445462
    446463
     
    449466
    450467    }
     468  // state_ff + "|" +
    451469    state = states.join('\n');
     470    if (state == "")
     471        state = state_ff;
     472
    452473    Fn = all_functions;
    453474    return { state: state, fn: callstack.join('\n') };
     
    463484    });
    464485    //==============================================
     486    librairies=[];
    465487    jQuery.extend(jQuery.expr[':'], {
    466488        // Nom du sélecteur personnalisé
     
    497519                    if (a.src.match(RegExp("mootools|pamooramic|luciano", "gi"))) {
    498520                        jQuery.noop;
    499 
     521                        librairies.push(a.src);
    500522                    }
    501523
     
    534556
    535557}
    536 if (typeof ($fn) != "function") {
    537     $.fn = function (options) {
    538         return jQuery.fn(options);
    539     }
    540 
    541 
    542 }
     558
    543559if (typeof ($.get) != "function") {
    544560    $.get = function (options) {
     
    550566$_ = $;
    551567function save_framework(page) {
    552     Conflit = { version: Version };
     568    try {
     569        Conflit = { version: Version, name: cl_plugin };
     570    } catch (e) {
     571
     572    }
     573   
    553574    $_ = $;
    554575    return
Note: See TracChangeset for help on using the changeset viewer.