Skip to content

Commit

Permalink
fixing URI property detection to return 'src' if none was detected - c…
Browse files Browse the repository at this point in the history
…loses #69
  • Loading branch information
rodneyrehm committed Mar 16, 2013
1 parent cc18c99 commit ccd7704
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/jquery.URI.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,13 @@ function getUriProperty(elem) {
return undefined;
}

if (!property) {
// you can set any property you wish. So for elements that don't have
// either of [src, href, action] we simply return src.
// https://github.com/medialize/URI.js/issues/69
return 'src';
}

return property;
}

Expand Down

0 comments on commit ccd7704

Please sign in to comment.