Tengo un problema, quiero saber si 'this' es Window pero la función $.isWindow no parece estar funcionando. El código es el siguiente:
Código Javascript
:
Ver originaljQuery.fn.getSize=function(){
var t = $(this);
if($.isWindow(this)){ //He probado con 't' también y no parece funcionar.
var gs=new Array();
gs[0]=t.width();
gs[1]=t.height();
return gs;
}
}