Plugin Directory

Changeset 633031


Ignore:
Timestamp:
12/02/2012 02:24:04 PM (13 years ago)
Author:
ti2m
Message:

usage of jQuery noconflict

File:
1 edited

Legend:

Unmodified
Added
Removed
  • edge-suite/trunk/includes/edge-wordpress.js

    r632663 r633031  
    162162  if(typeof jQuery != 'undefined'){
    163163      if(!AdobeEdge.otherjQuery){
     164          AdobeEdge.otherjQuery = true;
    164165          AdobeEdge.edgesuiteLogger('Other jQuery include exists: Version ' + jQuery().jquery);
    165           if(AdobeEdge.edgesuiteNoConflict){
    166               AdobeEdge.otherjQuery = jQuery;
    167           }
    168166      }
    169167  }
     
    178176window.jQueryEdge = window.jQueryEdge || null;
    179177AdobeEdge.alterOkToLaunchComposition = function(comp){
    180     if(AdobeEdge.edgesuiteNoConflict && typeof jQueryEdge != 'undefined'){
     178    if(AdobeEdge.otherjQuery && AdobeEdge.edgesuiteNoConflict && jQueryEdge == null){
    181179        AdobeEdge.edgesuiteLogger("Init 'edgejQuery' with: Version " + jQuery().jquery);
    182         jQueryEdge = jQuery;
    183         // AdobeEdge.edgesuiteLogger('jQuery NoConflict');
    184         // jQuery.noConflict(true);
    185         if(AdobeEdge.otherjQuery){
    186             jQuery = AdobeEdge.otherjQuery;
    187             AdobeEdge.edgesuiteLogger("Reset 'jQuery' to: Version " + jQuery().jquery);
    188         }
     180        jQueryEdge = jQuery.noConflict(true);
     181        AdobeEdge.edgesuiteLogger("Reset 'jQuery' to: Version " + jQuery().jquery);
    189182    }
    190183
Note: See TracChangeset for help on using the changeset viewer.