Skip to content

Commit

Permalink
This fixes issue: cowboy#5
Browse files Browse the repository at this point in the history
  • Loading branch information
plaidhatter committed May 17, 2012
1 parent 21ae0ec commit c737f12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.ba-resize.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@

// If element size has changed since the last time, update the element
// data store and trigger the 'resize' event.
if ( width !== data.w || height !== data.h ) {
if ( data && ( width !== data.w || height !== data.h ) ) {
elem.trigger( str_resize, [ data.w = width, data.h = height ] );
}

Expand Down

0 comments on commit c737f12

Please sign in to comment.