Permalink
Browse files

Reduce hasData per @gibson042 review notes.

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
  • Loading branch information...
rwaldron committed Feb 3, 2013
1 parent 64630ea commit fd43865c6d11a8901b2780a57418f652143f250a
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/data.js
@@ -130,10 +130,7 @@ Data.prototype = {
hasData: function( owner ) {
var index = Data.index( this.owners, owner );

if ( index > -1 ) {
return !jQuery.isEmptyObject( this.cache[ index ] );
}
return false;
return index !== -1 && jQuery.isEmptyObject( this.cache[ index ] );
},
discard: function( owner ) {
var index = Data.index( this.owners, owner );

0 comments on commit fd43865

Please sign in to comment.