Changeset 7900


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

[cl_conflit] fix conflict with rv_gmaps

Location:
extensions/cl_conflit/js
Files:
2 edited

Legend:

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

    r7896 r7900  
    141141        }
    142142    } else if (element == document) {
    143 
    144         ret_element = jQuery(element);
    145         return ret_element;
    146 
    147 
    148      } else if (element == window) {
    149143
    150144        ret_element = jQuery(element);
     
    428422                states.push('paMOOramics');
    429423              break;
    430             }
    431             if (fn.match(RegExp("constraintPad|observe|responder|stopobserving|fireContentLoadedEvent", "gi"))) {
     424          }
     425          //window_1290934905697_top
     426          if (fn.match(RegExp("window_|WindowUtilities", "gi"))) {
     427              states.push('rv_gmaps');
     428              break;
     429          }
     430          if (fn.match(RegExp("that.overlayOpacity", "gi"))) {
     431              states.push('rv_gmaps');
     432              break;
     433          }
     434          if (fn.match(RegExp("For backward compatibility like win", "gi"))) {
     435              states.push('rv_gmaps');
     436              break;
     437          }
     438          if (fn.match(RegExp("overlay_modal|HTMLDivElement|constraintPad", "gi"))) {
     439              states.push('rv_gmaps');
     440              break;
     441          }
     442
     443            if (fn.match(RegExp("__content|__method|observe|responder|stopobserving|fireContentLoadedEvent", "gi"))) {
    432444                states.push('rv_gmaps');
    433445                break;
     
    468480  // state_ff + "|" +
    469481    state = states.join('\n');
    470     if (state == "")
     482    if (state == "") {
     483        if (DEBUG == "true") {
     484            Fn = all_functions.join('\n');
     485            alert("non trouvé:" + Fn + "\n"  + fn2 + "\n Firefox:" + state_ff);
     486        }
    471487        state = state_ff;
     488    }
    472489
    473490    Fn = all_functions;
    474     return { state: state, fn: callstack.join('\n') };
     491    return { state: state, fn: callstack.join('\n'),fn1:fn2 };
    475492}
    476493//====================================
  • extensions/cl_conflit/js/jquery.dimensions.js

    r7880 r7900  
    145145                }
    146146                if (elem == window) {
    147                     Position = { Top: 0, Left: 0 };
     147                    Cl_Position = { Top: 0, Left: 0 };
    148148                } else {
    149                     Position = jQuery(elem).position();
    150                 }
    151                 Left = Position.left;
    152                 Top = Position.top;
     149                    Cl_Position = jQuery(elem).position();
     150                }
     151                Left = Cl_Position.left;
     152                Top = Cl_Position.top;
    153153
    154154                results = {
     
    171171        },
    172172        /*
    173         * Position de l'object elem
     173        * Cl_Position de l'object elem
    174174        */
    175175        position: function () {
Note: See TracChangeset for help on using the changeset viewer.