FIX: Timeline was wrong sometimes on iPad

This commit is contained in:
Robin Ward 2017-06-05 15:23:37 -04:00
parent 4b82d4fb15
commit 02ab2706df
1 changed files with 5 additions and 2 deletions
app/assets/javascripts/discourse/widgets

View File

@ -14,13 +14,16 @@ let _dirty = {};
export function keyDirty(key, options) { export function keyDirty(key, options) {
options = options || {}; options = options || {};
options.dirty = true; options.dirty = true;
_dirty[key] = options; _dirty[key] = options;
} }
export function renderedKey(key) { export function renderedKey(key) {
if (key === '*') {
_dirty = {};
} else {
delete _dirty[key]; delete _dirty[key];
} }
}
export function queryRegistry(name) { export function queryRegistry(name) {
return _registry[name]; return _registry[name];