Fixed ViewImage modal to clear its loaded state when its file list changes

Этот коммит содержится в:
hmhealey
2016-01-04 12:23:46 -05:00
родитель a47d696b95
Коммит 4b76d6a05d
2 изменённых файлов: 19 добавлений и 9 удалений

Просмотреть файл

@@ -1261,3 +1261,13 @@ export function isFeatureEnabled(feature) {
export function isSystemMessage(post) {
return post.type && (post.type.lastIndexOf(Constants.SYSTEM_MESSAGE_PREFIX) === 0);
}
export function fillArray(value, length) {
const arr = [];
for (let i = 0; i < length; i++) {
arr.push(value);
}
return arr;
}