Forgot to pass object parameters in resize event.