Fix tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
54c68519ce
commit
0da04fd284
1 changed files with 6 additions and 2 deletions
|
@ -48,8 +48,12 @@
|
|||
|
||||
(function ($) {
|
||||
$.fn.avatar = function(user, size, ie8fix, hidedefault, callback, displayname) {
|
||||
user = String(user);
|
||||
displayname = String(displayname);
|
||||
if (typeof(user) !== 'undefined') {
|
||||
user = String(user);
|
||||
}
|
||||
if (typeof(displayname) !== 'undefined') {
|
||||
displayname = String(displayname);
|
||||
}
|
||||
|
||||
if (typeof(size) === 'undefined') {
|
||||
if (this.height() > 0) {
|
||||
|
|
Loading…
Reference in a new issue