stuff
This commit is contained in:
parent
34b8ea2892
commit
3070f97ae1
|
@ -968,6 +968,7 @@ var BDFDB = {
|
||||||
Note: "usernote",
|
Note: "usernote",
|
||||||
SearchResults: "searchresultswrap",
|
SearchResults: "searchresultswrap",
|
||||||
TypingUsers: "typing",
|
TypingUsers: "typing",
|
||||||
|
UnreadDMs: "guildsscroller",
|
||||||
UserPopout: "userpopout",
|
UserPopout: "userpopout",
|
||||||
V2C_ContentColumn: "contentcolumn",
|
V2C_ContentColumn: "contentcolumn",
|
||||||
V2C_List: "_repolist",
|
V2C_List: "_repolist",
|
||||||
|
@ -1168,7 +1169,7 @@ var BDFDB = {
|
||||||
if (instance) {
|
if (instance) {
|
||||||
var name = type.split(" _ _ ")[0];
|
var name = type.split(" _ _ ")[0];
|
||||||
instance = instance._reactInternalFiber && instance._reactInternalFiber.type ? instance._reactInternalFiber.type : instance;
|
instance = instance._reactInternalFiber && instance._reactInternalFiber.type ? instance._reactInternalFiber.type : instance;
|
||||||
instance = instance.displayName == name || instance.name == name ? instance : BDFDB.ReactUtils.findOwner(instance, {name, up:true});
|
instance = instance.displayName == name || instance.name == name ? instance : (BDFDB.ReactUtils.findOwner(instance, {name}) || BDFDB.ReactUtils.findOwner(instance, {name, up:true}));
|
||||||
if (instance) {
|
if (instance) {
|
||||||
instance = instance._reactInternalFiber && instance._reactInternalFiber.type ? instance._reactInternalFiber.type : instance;
|
instance = instance._reactInternalFiber && instance._reactInternalFiber.type ? instance._reactInternalFiber.type : instance;
|
||||||
let patchfunctions = {};
|
let patchfunctions = {};
|
||||||
|
@ -1218,7 +1219,7 @@ var BDFDB = {
|
||||||
function isCorrectInstance(instance, name) {
|
function isCorrectInstance(instance, name) {
|
||||||
if (!instance) return false;
|
if (!instance) return false;
|
||||||
instance = instance._reactInternalFiber && instance._reactInternalFiber.type ? instance._reactInternalFiber.type : instance;
|
instance = instance._reactInternalFiber && instance._reactInternalFiber.type ? instance._reactInternalFiber.type : instance;
|
||||||
instance = instance.displayName == name || instance.name == name ? instance : BDFDB.ReactUtils.findOwner(instance, {name, up:true});
|
instance = instance.displayName == name || instance.name == name ? instance : (BDFDB.ReactUtils.findOwner(instance, {name}) || BDFDB.ReactUtils.findOwner(instance, {name, up:true}));
|
||||||
return !!instance;
|
return !!instance;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue