Changeset 8185 for extensions/Autosize/js
- Timestamp:
- Dec 18, 2010, 11:29:52 AM (14 years ago)
- Location:
- extensions/Autosize/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/js/Affiche_script.js
r8093 r8185 10 10 11 11 //[gmaps=id:2;width:200;height:120;] 12 13 12 14 13 15 -
extensions/Autosize/js/conflit.js
r8093 r8185 126 126 if (ret_element != "") 127 127 return ret_element; 128 129 n = document; 130 v = window; 131 nbpa += 1; 128 132 129 if (typeof (element) == "string") { 133 130 if (element.match("^#|.ui", "gi")) { … … 226 223 227 224 228 if (!B) { 229 if (typeof (B) == "boolean") return null; 230 231 } 232 233 try { 234 if (B.htmlElement) { 235 return Garbage.collect(B); 236 } 237 } catch (e) { 238 239 } 240 241 if ([window, document].contains(B)) { return B; } 242 var A = $type(B); 243 if (A == "string") { B = document.getElementById(B); A = (B) ? "element" : false; } 244 if (A != "element") { 245 return null; 246 } 247 if (B.htmlElement) { return Garbage.collect(B); } 248 if (["object", "embed"].contains(B.tagName.toLowerCase())) { return B; } 249 $extend(B, Element.prototype); 250 B.htmlElement = function () { }; 251 try { return Garbage.collect(B); } catch (e) { 252 return; 253 } 254 255 }, 256 //=================================================== 257 $Prototype: function (element) { 258 //======== prototype.js ===================== 259 if (arguments.length > 1) { 260 for (var i = 0, elements = [], length = arguments.length; i < length; i++) 261 elements.push($(arguments[i])); 262 return elements; 263 } 264 if (typeof element == "string") 265 element = document.getElementById(element); 266 267 //return Element.extend(element); 268 269 try { 270 new_element = Element.extend(element); 271 } catch (e) { 225 if (!B) { 226 if (typeof (B) == "boolean") return null; 227 228 } 229 230 try { 231 if (B.htmlElement) { 232 return Garbage.collect(B); 233 } 234 } catch (e) { 235 236 } 237 238 if ([window, document].contains(B)) { return B; } 239 var A = $type(B); 240 if (A == "string") { B = document.getElementById(B); A = (B) ? "element" : false; } 241 if (A != "element") { 242 return null; 243 } 244 if (B.htmlElement) { return Garbage.collect(B); } 245 if (["object", "embed"].contains(B.tagName.toLowerCase())) { return B; } 246 $extend(B, Element.prototype); 247 B.htmlElement = function () { }; 248 try { return Garbage.collect(B); } catch (e) { 249 return; 250 } 251 252 }, 253 //=================================================== 254 $Prototype: function (element) { 255 //======== prototype.js ===================== 256 if (arguments.length > 1) { 257 for (var i = 0, elements = [], length = arguments.length; i < length; i++) 258 elements.push($(arguments[i])); 259 return elements; 260 } 261 if (typeof element == "string") 262 element = document.getElementById(element); 263 264 return Element.extend(element); 265 266 try { 267 new_element = Element.extend(element); 268 } catch (e) { 269 return new_element; 270 } 272 271 return new_element; 273 272 } 274 return new_element; 275 } 276 //========================================================= 273 //========================================================= 277 274 }); // fin extend 278 275 … … 504 501 $_ = $; 505 502 function save_framework(page) { 506 507 503 try { 508 504 Conflit = { version: cl_version, name: cl_plugin }; … … 510 506 511 507 } 512 513 $_2 = $; 508 $_2 = $; 514 509 return 515 516 } 510 } 517 511 518 512 (function ($) { … … 564 558 } 565 559 } 560 if (typeof ($.post) != "function") { 561 562 $.post = function (a, b, c,d) { 563 return jQuery.post(a, b, c, d); 564 } 565 ; 566 567 } 568 569 566 570 567 571 }
Note: See TracChangeset
for help on using the changeset viewer.