FIX: Timeline was wrong sometimes on iPad
This commit is contained in:
parent
4b82d4fb15
commit
02ab2706df
app/assets/javascripts/discourse/widgets
|
@ -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];
|
||||||
|
|
Loading…
Reference in New Issue