Copy over any temporary JSON properties in Build.parseJSON.
This commit is contained in:
parent
fb0759f40d
commit
21f0dbfd46
@ -79,6 +79,9 @@ Build =
|
|||||||
tag: data.tag
|
tag: data.tag
|
||||||
hasDownscale: !!data.m_img
|
hasDownscale: !!data.m_img
|
||||||
o.file.dimensions = "#{o.file.width}x#{o.file.height}" unless /\.pdf$/.test o.file.url
|
o.file.dimensions = "#{o.file.width}x#{o.file.height}" unless /\.pdf$/.test o.file.url
|
||||||
|
# Temporary JSON properties for events such as April 1 / Halloween
|
||||||
|
for key of data when key[0] is 'x'
|
||||||
|
o[key] = data[key]
|
||||||
o
|
o
|
||||||
|
|
||||||
parseComment: (html) ->
|
parseComment: (html) ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user