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
|
||||
hasDownscale: !!data.m_img
|
||||
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
|
||||
|
||||
parseComment: (html) ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user