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