Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const key = keys[i]
if (i === len - 1) return obj[key]
obj = obj[key]
}
}
let id = 0
function genId () {
return String(id++)
}
let compIdsMapper
try {
compIdsMapper = new Map()
} catch (error) {
compIdsMapper = new SimpleMap()
}
export function genCompid (key, isNeedCreate) {
if (!Current || !Current.current || !Current.current.$scope) return []
const prevId = compIdsMapper.get(key)
if (isNeedCreate) {
const id = genId()
compIdsMapper.set(key, id)
return [prevId, id]
} else {
const id = prevId || genId()
!prevId && compIdsMapper.set(key, id)
return [null, id]
}
}
if (res) return res
return null
}
let id = 0
function genId () {
return String(id++)
}
let compIdsMapper
try {
compIdsMapper = new Map()
} catch (error) {
compIdsMapper = new SimpleMap()
}
export function genCompid (key, isNeedCreate) {
if (!Current || !Current.current || !Current.current.$scope) return []
const prevId = compIdsMapper.get(key)
if (isNeedCreate) {
const id = genId()
compIdsMapper.set(key, id)
return [prevId, id]
} else {
const id = prevId || genId()
!prevId && compIdsMapper.set(key, id)
return [null, id]
}
}
if (res) return res
return null
}
let id = 0
function genId () {
return String(id++)
}
let compIdsMapper
try {
compIdsMapper = new Map()
} catch (error) {
compIdsMapper = new SimpleMap()
}
export function genCompid (key, isNeedCreate) {
if (!Current || !Current.current || !Current.current.$scope) return []
const prevId = compIdsMapper.get(key)
if (isNeedCreate) {
const id = genId()
compIdsMapper.set(key, id)
return [prevId, id]
} else {
const id = prevId || genId()
!prevId && compIdsMapper.set(key, id)
return [null, id]
}
}
if (res) return res
return null
}
let id = 0
function genId () {
return String(id++)
}
let compIdsMapper
try {
compIdsMapper = new Map()
} catch (error) {
compIdsMapper = new SimpleMap()
}
export function genCompid (key, isNeedCreate) {
if (!Current || !Current.current || !Current.current.$scope) return []
const prevId = compIdsMapper.get(key)
if (isNeedCreate) {
const id = genId()
compIdsMapper.set(key, id)
return [prevId, id]
} else {
const id = prevId || genId()
!prevId && compIdsMapper.set(key, id)
return [null, id]
}
}
res && triggerLoopRef(component.$component, res, handler)
}
return null
}
let id = 0
function genId () {
return String(id++)
}
let compIdsMapper
try {
compIdsMapper = new Map()
} catch (error) {
compIdsMapper = new SimpleMap()
}
export function genCompid (key, isNeedCreate) {
if (!Current || !Current.current || !Current.current.$scope) return []
const prevId = compIdsMapper.get(key)
if (isNeedCreate) {
const id = genId()
compIdsMapper.set(key, id)
return [prevId, id]
} else {
const id = prevId || genId()
!prevId && compIdsMapper.set(key, id)
return [null, id]
}
}
if (res) return res
return null
}
let id = 0
function genId () {
return String(id++)
}
let compIdsMapper
try {
compIdsMapper = new Map()
} catch (error) {
compIdsMapper = new SimpleMap()
}
export function genCompid (key, isNeedCreate) {
if (!Current || !Current.current || !Current.current.$scope) return []
const prevId = compIdsMapper.get(key)
if (isNeedCreate) {
const id = genId()
compIdsMapper.set(key, id)
return [prevId, id]
} else {
const id = prevId || genId()
!prevId && compIdsMapper.set(key, id)
return [null, id]
}
}
if (res) return res
return null
}
let id = 0
function genId () {
return String(id++)
}
let compIdsMapper
try {
compIdsMapper = new Map()
} catch (error) {
compIdsMapper = new SimpleMap()
}
export function genCompid (key, isNeedCreate) {
if (!Current || !Current.current || !Current.current.$scope) return []
const prevId = compIdsMapper.get(key)
if (isNeedCreate) {
const id = genId()
compIdsMapper.set(key, id)
return [prevId, id]
} else {
const id = prevId || genId()
!prevId && compIdsMapper.set(key, id)
return [null, id]
}
}