Refactor code.

This commit is contained in:
Lars Jung 2015-05-02 23:38:47 +02:00
parent 9bdf86fc24
commit 46b335eb9f
7 changed files with 21 additions and 36 deletions

View file

@ -27,7 +27,7 @@ modulejs.define('ext/preview-img', ['_', '$', 'core/event', 'core/server', 'core
height: 0
}, function (json) {
callback(json && json.code === 'RC_SUCCESS' ? json.absHref : null);
callback(json && json.absHref ? json.absHref : null);
});
}