Changeset 7642 for extensions/Autosize/js/conflit.js
- Timestamp:
- Nov 5, 2010, 12:56:12 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/js/conflit.js
r7618 r7642 13 13 function (jQuery) { 14 14 15 16 17 15 tpj = jQuery("#pamoorama"); 18 16 if (tpj.length > 0) { } … … 27 25 28 26 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 38 27 }); 39 28 … … 82 71 83 72 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, 86 75 jquery : jQuery(element), 87 76 Luciano: ret_Luciano … … 94 83 } 95 84 96 if (Prototype_Version != "0") return ret_el. prototype; //rv_gmaps97 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; 98 87 return ret_el.jquery; 99 88 j = nc; … … 118 107 if (arguments.caller.length > 1) { 119 108 if (element == "pamoorama") { 120 return ret_el. pamoorama109 return ret_el.Pamoorama 121 110 } 122 111 arg = arguments.caller[1]; … … 128 117 case "dom:loaded": 129 118 return element; 130 return ret_el. prototype119 return ret_el.Prototype 131 120 break; 132 121 case "load": 133 return ret_el. prototype122 return ret_el.Prototype 134 123 break; 135 124 case "unload": 136 return ret_el. prototype125 return ret_el.Prototype 137 126 break; 138 127 case "prototype_event_registry": 139 128 140 129 try { 141 retour = ret_el. prototype;130 retour = ret_el.Prototype; 142 131 } catch (e) { 143 132 retour = null; … … 169 158 switch (arg) { 170 159 case "bottom": 171 return ret_el. pamoorama160 return ret_el.Pamoorama 172 161 break; 173 162 case "left": 174 return ret_el. pamoorama163 return ret_el.Pamoorama 175 164 break; 176 165 case "prototype_event_registry": 177 return ret_el. pamoorama166 return ret_el.Pamoorama 178 167 break; 179 168 case "readystatechange": 180 return ret_el. pamoorama169 return ret_el.Pamoorama 181 170 break; 182 171 183 172 default: 184 173 if (arg.area) { 185 return ret_el. pamoorama174 return ret_el.Pamoorama 186 175 } else 187 176 if (arg.velocity) { 188 return ret_el. pamoorama177 return ret_el.Pamoorama 189 178 } else if (arg.src) { 190 return ret_el. pamoorama179 return ret_el.Pamoorama 191 180 } else if (arg.modifiers) { 192 return ret_el. pamoorama181 return ret_el.Pamoorama 193 182 } else if (arg.limit) { 194 return ret_el. pamoorama183 return ret_el.Pamoorama 195 184 } else if (arg.duration) { 196 return ret_el. pamoorama185 return ret_el.Pamoorama 197 186 } else if (arg.id) { 198 187 switch (arg.id) { 199 188 case "pamoorama_footer": 200 return ret_el. pamoorama189 return ret_el.Pamoorama 201 190 break; 202 191 case "pamoorama_outter": 203 return ret_el. pamoorama192 return ret_el.Pamoorama 204 193 break; 205 194 case "pamoorama_inner": 206 return ret_el. pamoorama195 return ret_el.Pamoorama 207 196 break; 208 197 209 198 default: 210 return ret_el. pamoorama199 return ret_el.Pamoorama 211 200 break; 212 201 213 202 } 214 203 } else if (arg.src) { 215 return ret_el. pamoorama204 return ret_el.Pamoorama 216 205 217 206 } … … 237 226 if (element.match(/[a-z]_[a-z]/)) { 238 227 239 return ret_el. prototype228 return ret_el.Prototype 240 229 } 241 230 id = "window_" + new Date().getTime(); … … 244 233 245 234 if (element.match(/_[a-z]/)) { 246 return ret_el. prototype235 return ret_el.Prototype 247 236 } 248 237 return null; … … 264 253 if (MooTools_version == "Luciano" && tpe == "string") { 265 254 //=== 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; 273 262 } 274 263 … … 280 269 switch (jq) { 281 270 case "ie_ready": 282 return ret_el. pamoorama271 return ret_el.Pamoorama 283 272 break; 284 273 case "pamoorama": 285 return ret_el. pamoorama274 return ret_el.Pamoorama 286 275 break; 287 276 case ".tab a": 288 return jQuery(element);277 return ret_el.jquery; 289 278 break; 290 279 291 280 } else if (tpe == "boolean") { 292 return ret_el. pamoorama281 return ret_el.Pamoorama 293 282 } 294 283 if(element) 295 284 if (typeof (element.nodeName) != "undefined") { 296 285 el = element.nodeName; 297 if (el == "DIV") return ret_el. pamoorama298 if (el == "IMG") return ret_el. pamoorama286 if (el == "DIV") return ret_el.Pamoorama 287 if (el == "IMG") return ret_el.Pamoorama 299 288 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; 302 292 return ret_el.jquery; 303 293 } 304 294 if (el == "BODY") { 305 295 try { 306 if (Prototype_Version != "0") return ret_el. prototype; //rv_gmaps307 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; 308 298 return ret_el.jquery; 309 299 return jQuery().$Pamoorama(element) … … 317 307 318 308 if (element == window) { 319 if (Prototype_Version != "0") return ret_el. prototype; //rv_gmaps320 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; 321 311 return ret_el.jquery; 322 312 … … 372 362 //=== rvmaps === 373 363 try { 374 return ret_el. prototype364 return ret_el.Prototype 375 365 376 366 } catch (e) { … … 404 394 //=== paMOOramics === 405 395 // ie_ready,undefined 406 return ret_el. pamoorama396 return ret_el.Pamoorama 407 397 } 408 398 … … 413 403 //=== rvmaps === 414 404 try { 415 return ret_el. prototype405 return ret_el.Prototype 416 406 } catch (e) { 417 407 return jQuery(element); … … 463 453 //=============== PaMOOramics =========================== 464 454 $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 () { }; 471 481 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 487 483 488 484 },
Note: See TracChangeset
for help on using the changeset viewer.