"attributes is null or not an object" in 1.4.4

"attributes is null or not an object" in 1.4.4

I use the same function as event-driven as well as simulation
 
I simulate the applyTemp() function from the other function, it will shows  the error "attributes is null or not an object"
1. function applyTemp(){
2.  try{
3.    var $this = $(this);
4.    if ($this.attr('class') == 'details') {
5.    }
6.   }
7.  catch(e){
8.    alert(e);
9.   }
10. }

The same method was works well in 1.4.3