Combine adopt
This commit is contained in:
1 parent
1cea786d66
commit
f22b836ede
1 file changed
+2
-3
@@ -223,12 +223,11 @@ Block.Search.Item = new Class({
|
|||||||
'text': info.year
|
'text': info.year
|
||||||
}) : null
|
}) : null
|
||||||
)
|
)
|
||||||
).grab(
|
).adopt(
|
||||||
self.rating = info.rating && info.rating.imdb.length == 2 && parseFloat(info.rating.imdb[0]) > 0 ? new Element('span.rating', {
|
self.rating = info.rating && info.rating.imdb.length == 2 && parseFloat(info.rating.imdb[0]) > 0 ? new Element('span.rating', {
|
||||||
'text': parseFloat(info.rating.imdb[0]),
|
'text': parseFloat(info.rating.imdb[0]),
|
||||||
'title': parseInt(info.rating.imdb[1]) + ' votes'
|
'title': parseInt(info.rating.imdb[1]) + ' votes'
|
||||||
}) : null
|
}) : null,
|
||||||
).grab(
|
|
||||||
self.genre = info.genres && info.genres.length > 0 ? new Element('span.genres', {
|
self.genre = info.genres && info.genres.length > 0 ? new Element('span.genres', {
|
||||||
'text': info.genres.slice(0, 3).join(', ')
|
'text': info.genres.slice(0, 3).join(', ')
|
||||||
}) : null
|
}) : null
|
||||||
|
|||||||
Reference in new issue
Block a user