Ignore:
Timestamp:
Nov 5, 2010, 12:56:12 PM (13 years ago)
Author:
cljosse
Message:

[Autosize][beta] fix display time.

File:
1 edited

Legend:

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

    r7618 r7642  
    1313      function (jQuery) {
    1414
    15 
    16 
    1715           tpj = jQuery("#pamoorama");
    1816          if (tpj.length > 0) {             }
     
    2725
    2826
    29               tp = typeof (Browser);
    30               if (tp != "undefined")
    31                   if (Browser.loaded == true) {
    32                       n = Browser;
    33                   }
    34                   function $(element, nc) {
    35                       return conflit(element, nc);
    36                   }
    37              
    3827          });
    3928
     
    8271     
    8372        var jq = jQuery(element).selector;
    84         var ret_el ={  prototype : ret_proto,
    85                         pamoorama : ret_pamoorama,
     73        var ret_el ={  Prototype : ret_proto,
     74                        Pamoorama : ret_pamoorama,
    8675                        jquery :     jQuery(element),
    8776                        Luciano: ret_Luciano
     
    9483                        }
    9584                         
    96                         if (Prototype_Version != "0") return ret_el.prototype; //rv_gmaps
    97                         if (MooTools_version == "pamoorama") return ret_el.pamoorama;
     85                        if (Prototype_Version != "0") return ret_el.Prototype; //rv_gmaps
     86                        //if (MooTools_version == "pamoorama") return ret_el.Pamoorama;
    9887                        return ret_el.jquery;
    9988                        j = nc;
     
    118107            if (arguments.caller.length > 1) {
    119108                if (element == "pamoorama") {
    120                     return ret_el.pamoorama
     109                    return ret_el.Pamoorama
    121110                }
    122111                arg = arguments.caller[1];
     
    128117                        case "dom:loaded":
    129118                            return element;
    130                             return ret_el.prototype
     119                            return ret_el.Prototype
    131120                            break;
    132121                        case "load":
    133                             return ret_el.prototype
     122                            return ret_el.Prototype
    134123                            break;
    135124                        case "unload":
    136                             return ret_el.prototype
     125                            return ret_el.Prototype
    137126                            break;
    138127                        case "prototype_event_registry":
    139128
    140129                            try {
    141                                 retour = ret_el.prototype;
     130                                retour = ret_el.Prototype;
    142131                            } catch (e) {
    143132                                retour = null;
     
    169158                        switch (arg) {
    170159                            case "bottom":
    171                                 return ret_el.pamoorama
     160                                return ret_el.Pamoorama
    172161                                break;
    173162                            case "left":
    174                                 return ret_el.pamoorama
     163                                return ret_el.Pamoorama
    175164                                break;
    176165                            case "prototype_event_registry":
    177                                 return ret_el.pamoorama
     166                                return ret_el.Pamoorama
    178167                                break;
    179168                            case "readystatechange":
    180                                 return ret_el.pamoorama
     169                                return ret_el.Pamoorama
    181170                                break;
    182171
    183172                            default:
    184173                                if (arg.area) {
    185                                     return ret_el.pamoorama
     174                                    return ret_el.Pamoorama
    186175                                } else
    187176                                    if (arg.velocity) {
    188                                         return ret_el.pamoorama
     177                                        return ret_el.Pamoorama
    189178                                    } else if (arg.src) {
    190                                         return ret_el.pamoorama
     179                                        return ret_el.Pamoorama
    191180                                    } else if (arg.modifiers) {
    192                                         return ret_el.pamoorama
     181                                        return ret_el.Pamoorama
    193182                                    } else if (arg.limit) {
    194                                         return ret_el.pamoorama
     183                                        return ret_el.Pamoorama
    195184                                    } else if (arg.duration) {
    196                                         return ret_el.pamoorama
     185                                        return ret_el.Pamoorama
    197186                                    } else if (arg.id) {
    198187                                        switch (arg.id) {
    199188                                            case "pamoorama_footer":
    200                                                 return ret_el.pamoorama
     189                                                return ret_el.Pamoorama
    201190                                                break;
    202191                                            case "pamoorama_outter":
    203                                                 return ret_el.pamoorama
     192                                                return ret_el.Pamoorama
    204193                                                break;
    205194                                            case "pamoorama_inner":
    206                                                 return ret_el.pamoorama
     195                                                return ret_el.Pamoorama
    207196                                                break;
    208197
    209198                                            default:
    210                                                 return ret_el.pamoorama
     199                                                return ret_el.Pamoorama
    211200                                                break;
    212201
    213202                                        }
    214203                                    } else if (arg.src) {
    215                                         return ret_el.pamoorama
     204                                        return ret_el.Pamoorama
    216205
    217206                                    }
     
    237226                if (element.match(/[a-z]_[a-z]/)) {
    238227
    239                     return ret_el.prototype
     228                    return ret_el.Prototype
    240229                }
    241230                id = "window_" + new Date().getTime();
     
    244233
    245234                    if (element.match(/_[a-z]/)) {
    246                         return ret_el.prototype
     235                        return ret_el.Prototype
    247236                    }
    248237                    return null;
     
    264253        if (MooTools_version == "Luciano" && tpe == "string") {
    265254            //=== theme Luciano ====
    266             ret_el.jquery = ret_el.Luciano;
    267             if (element == "order") return ret_el.jquery;
    268             if (element == "themeSelect") return ret_el.jquery;
    269             if (element == "languageSelect") return ret_el.jquery;
    270             if (element == 'linkPrev') return ret_el.jquery;
    271             if (element == 'linkNext') return ret_el.jquery;
    272             if (element == 'rateForm') return ret_el.jquery;
     255           
     256            if (element == "order") return ret_el.Luciano;
     257            if (element == "themeSelect") return ret_el.Luciano;
     258            if (element == "languageSelect") return ret_el.Luciano;
     259            if (element == 'linkPrev') return ret_el.Luciano;
     260            if (element == 'linkNext') return ret_el.Luciano;
     261            if (element == 'rateForm') return ret_el.Luciano;
    273262        }
    274263
     
    280269                switch (jq) {
    281270                case "ie_ready":
    282                     return ret_el.pamoorama
     271                    return ret_el.Pamoorama
    283272                    break;
    284273                case "pamoorama":
    285                     return ret_el.pamoorama
     274                    return ret_el.Pamoorama
    286275                    break;
    287276                case ".tab a":
    288                     return jQuery(element);
     277                    return ret_el.jquery;
    289278                    break;
    290279
    291280            } else if (tpe == "boolean") {
    292                 return ret_el.pamoorama
     281                return ret_el.Pamoorama
    293282            }
    294283            if(element)
    295284            if (typeof (element.nodeName) != "undefined") {
    296285            el = element.nodeName;
    297             if (el == "DIV") return ret_el.pamoorama
    298             if (el == "IMG") return ret_el.pamoorama
     286            if (el == "DIV") return ret_el.Pamoorama
     287            if (el == "IMG") return ret_el.Pamoorama
    299288            if (el == "#document") {
    300                 if (Prototype_Version != "0") return ret_el.prototype; //rv_gmaps
    301                 if (MooTools_version == "pamoorama") return ret_el.pamoorama;
     289                if (Prototype_Version != "0") return ret_el.Prototype; //rv_gmaps
     290                if (MooTools_version == "pamoorama") return ret_el.jquery;
     291                if (MooTools_version == "pamoorama") return ret_el.Pamoorama;
    302292                return ret_el.jquery;
    303293            }
    304294            if (el == "BODY") {
    305295                try {
    306                     if (Prototype_Version != "0") return ret_el.prototype; //rv_gmaps
    307                     if (MooTools_version == "pamoorama") return ret_el.pamoorama;
     296                    if (Prototype_Version != "0") return ret_el.Prototype; //rv_gmaps
     297                    if (MooTools_version == "pamoorama") return ret_el.Pamoorama;
    308298                    return ret_el.jquery;
    309299                    return jQuery().$Pamoorama(element)
     
    317307
    318308        if (element == window) {
    319             if (Prototype_Version != "0") return ret_el.prototype; //rv_gmaps
    320             if (MooTools_version == "pamoorama") return ret_el.pamoorama;
     309            if (Prototype_Version != "0") return ret_el.Prototype; //rv_gmaps
     310            if (MooTools_version == "pamoorama") return ret_el.Pamoorama;
    321311            return ret_el.jquery;
    322312
     
    372362                        //=== rvmaps ===
    373363                        try {
    374                             return ret_el.prototype
     364                            return ret_el.Prototype
    375365
    376366                        } catch (e) {
     
    404394            //=== paMOOramics ===
    405395            // ie_ready,undefined
    406             return ret_el.pamoorama
     396            return ret_el.Pamoorama
    407397        }
    408398
     
    413403            //=== rvmaps ===
    414404            try {
    415                 return ret_el.prototype
     405                return ret_el.Prototype
    416406            } catch (e) {
    417407                return jQuery(element);
     
    463453    //=============== PaMOOramics ===========================
    464454    $Pamoorama: function (B) {
    465  
    466         if (!B) {
    467             if (typeof (B) == "boolean") return null;
    468             return jQuery();
    469         }
    470         if (B.htmlElement) {
     455     
     456            if (!B) {
     457                return null;
     458            }
     459            if (B.htmlElement) {
     460                return Garbage.collect(B);
     461            }
     462            if ([window, document].contains(B)) {
     463                return B;
     464            }
     465            var A = $type(B);
     466            if (A == "string") {
     467                B = document.getElementById(B);
     468                A = (B) ? "element" : false;
     469            }
     470            if (A != "element") {
     471                return null;
     472            }
     473            if (B.htmlElement) {
     474                return Garbage.collect(B);
     475            }
     476            if (["object", "embed"].contains(B.tagName.toLowerCase())) {
     477                return B;
     478            }
     479            $extend(B, Element.prototype);
     480            B.htmlElement = function () { };
    471481            return Garbage.collect(B);
    472 
    473         }
    474         if ([window, document].contains(B)) { return B; }
    475         var A = $type(B);
    476         if (A == "string") { B = document.getElementById(B); A = (B) ? "element" : false; }
    477         if (A != "element") {
    478             return null;
    479         }
    480         if (B.htmlElement) { return Garbage.collect(B); }
    481         if (["object", "embed"].contains(B.tagName.toLowerCase())) { return B; }
    482         $extend(B, Element.prototype);
    483         B.htmlElement = function () { };
    484         try { return Garbage.collect(B); } catch (e) {
    485             return;
    486         }
     482       
    487483
    488484    },
Note: See TracChangeset for help on using the changeset viewer.