jQuery segundo aniversario y nueva version 1.2.2 lista para descargar

A la par con la celebración del cumplimiento del segundo aniversario de jQuery desde su lanzamiento, se libera tambien la nueva version(1.2.2) de ésta fantastica librería.

A pesar que ésta nueva version se lanza más como una correccion de bugs de la version 1.2 trae unas mejoras sorprendentes.

300% Mejoras de Velocidad para $(DOMElement)

Browser 1.2.1 (ms) 1.2.2 (ms)
Firefox 2 0.041 0.015
Firefox 3 0.033 0.01
Safari 3 0.017 0.005
Opera 9 0.023 0.004
Internet Explorer 6 0.04 0.0

.ready() Revisado

La funcion ready ha sufrido algunos cambios.

  • Han habido mejoras drasticas en Internet Explorer ya que ahora se usa una nueva tecnica inpirada por Diego Perini, la cual permite no tener que hacer uso del document.write.
  • Todos los navegadores esperan a que el css esté cargado.
  • Ahora es posible usarlo dentro de la funcion .bind, $(document).bind("ready", fn); aunque podemos seguir usando simplemente .ready().

.bind(”mouseenter”) / .bind(”mouseleave”)

La funcion .hover() ha sido divida en dos nuevos eventos: mouseenter(al posar el mouse) y mouseleave(al quitar el mouse).

$("li").hover(function(){
$(this).addClass("hover");
}, function(){
$(this).removeClass("hover");
});
$("li").bind("mouseenter", function(){
$(this).addClass("hover");
}).bind("mouseleave", function(){
$(this).removeClass("hover");
});

.bind(”mousewheel”)

Tenemos tambien un nuevo plugin, escrito por Brandon Aaron, basado en la nueva api de eventos de jquery, asi es como se pueden escribir cosas como ésta:

$("div").bind("mousewheel", function(event, delta){
if ( delta < 0 )
$(this).append("up");
else
$(this).append("down");
});

Complex :not()

Ahora el selector not() soporta expresiones complejas:

$(".hover:not(li.active)")
$("li:not(.active,.hover,:contains(test))")

Accept Headers

Para el tratamiento de datos via ajax se han establecido las siguientes cabeceras por defecto.

  • xml “application/xml, text/xml”
  • html “text/html”
  • script “text/javascript, application/javascript”
  • json “application/json, text/javascript”
  • text “text/plain”
  • Cualquier otro : “*/*”

Bug Fixes

Algunas revisiones adicionales.

  • .clone() revisado
  • Script evaluation revisado
  • height() / width() revisado
  • Cross-frame DOM manipulation
  • Algunas fugas de memoria han sido solucionadas

API Eventos

Hay una nueva api para la manipulacion de eventos. Ahora podemos crear nuestros propios tipos de eventos (para configurarlos y eliminarlos a nuestra manera). Ésto nos permitira ir mas allá que simplemente capturar eventos, ahora podremos crear un completo esquema de agregar, manejar, y quitar eventos de un elemento. Un plugin de muestra fue creado por Brandon Aaron a manera de ejemplo de como usar la nueva api.

Añadir nuevo comentario

buy Endep c o d want to buy Endep in usa buy discount Amitriptyline where can i buy Amitriptyline without a rx online Amitriptyline purchase buy Amitriptyline with no prescription buy Amitriptyline online without prescription fedex Amitriptyline overnight without a prescription what is Amitriptyline buy Endep australia buy next day Endep buy Endep online with a debit card buy generic Endep online order no online rx Endep buy Endep 75mg buy Endep no prescriptions order Endep pharmacy next day delivery on Endep saturday buy Endep from india buy cheap Anafranil on line buy online rx Endep without buy Aricept amex purchase online prescription Aricept without buy next day Aricept buy Aricept cash on delivery purchase cheap Aricept Aricept overdose buy Nizoral with mastercard where can i purchase Nizoral online Nizoral pharmacy purchase Nizoral without prescription from us pharmacy Nizoral uk no prescription Nizoral with fedex buy Nizoral with amex online purchase Nizoral order Nizoral online buy Amitriptyline in india purchase online prescription Famvir without Buy Famvir pill Famvir free consultation fedex overnight delivery buying Famvir without a prescription buy Famvir pay pal without prescription Famvir without dr purchase Famvir without a prescription overnight shipping how to buy Finpecia on line Abilify buy online purchase Abilify over the counter cod overnight Buy Famvir online pharmacy how to get a Famvir rx Abilify order online Non perscription cheap Finpecia buy discount Lisinopril on line buy Lisinopril no prescription low cost order Lisinopril pay pal online without rx buy Lisinopril online no perscription where to purchase cheap Lisinopril no rx buy Lisinopril now Maxalt purchase purchase Maxalt cod next day delivery where to buy Maxalt online purchase Maxalt online without rx best buy Maxalt Maxalt online maxalt overnight no script mastercard accepted cheap maxalt no script order arimidex overnight delivery purchase arimidex without a prescription online buy cheapest Arimidex and Arimidex buy no perscription Arimidex discount Arimidex achat Arimidex buy cheap online pharmacy Lisinopril How to get perscription of Lisinopril buy Lisinopril now Lisinopril order buy Amitriptyline no prescription Fluoxetine no prior script online Fluoxetine purchase cheap order rx Fluoxetine order Fluoxetine no visa without rx buy Fluoxetine toronto buy Fluoxetine drugs where can i buy herbal Fluoxetine prescription Fluoxetine buy Fluoxetine without doctor buy Fluoxetine on line Anafranil online purchase Anafranil from india Anafranil with repronex buy Anafranil amex online without prescription where to buy Anafranil online where can i purchase Anafranil without a prescription buy Anafranil pay pal without prescription Nizoral purchased online without prescription buy Aricept offshore no prescription fedex Aricept without prescription medications overnight Aricept without a rx uk Aricept generic how to order Amitriptyline online without a rx Accutane 40 mg delivered overnight Accutane 40 mg overnight delivery fed ex Accutane 40 mg overnight delivery fed ex where to purchase generic Accutane 40 mg online without a rx buy 40 mg Accutane free fedex delivery 40 mg Accutane uk order Amitriptyline Amitriptyline best buy generic Accutane 40 mg uk buy Accutane 40 mg in mo buy Accutane 40 mg uk buy generic Accutane 40 mg pills order 40 mg Accutane online next day delivery 40 mg Accutane ordering without a dr