Kehlani’s Custody Battle and ‘Cult’ Allegations, Explained
ByJennifer Zhan,
a Vulture news blogger covering music, internet culture, and TV.
Kehlani Parrish.
Photo: Dia Dipasupil/Getty Images
It’s a confusing time to be a Kehlani fan who isn’t super online. Since early August, claims and statements have been made by or about the singer on a near-daily basis, oftentimes via temporary Instagram Stories or social-media accounts that are now private or deactivated. At the center of the mess is Kehlani’s ongoing custody battle with Javaughn Young-White, the father of their 5-year-old daughter, Adeya. In a July 24 filing in the Los Angeles County Superior Court asking for full custody, Young-White accused Kehlani of leaving Adeya in the care of members of a “cult” including a leader he claimed “has numerous accusations of committing sexual assault against women and young girls.” After TMZ reported on this initial court filing in August, Young-White stated that he never said the group “was a sex cult” and walked back his allegations against the leader. However, he maintained that he is concerned about Adeya’s well-being, and said he plans to file an amended legal complaint. Young-White has also accused Kehlani of “framing her abuse” as his; Kehlani has alleged that Young-White had been abusive, and was granted a temporary restraining order against him on August 9. Meanwhile, the legal drama has also been accompanied by increased attention on Kehlani’s behavior in other relationships and friendships. Listening to her new While We Wait 2 mixtape and need to know more context ahead of her upcoming tour? Catch up on the major developments below.
Who is Javaughn Young-White?
He is Kehlani’s ex and former guitarist, and also the younger brother of comedian Jaboukie Young-White. Kehlani and Javaughn Young-White had a daughter, Adeya, together in 2019. Kehlani previously shared on Queen Radio that she “was lucky to find a partner who was a bisexual male,” and said she’d planned to get pregnant while on a break from touring. “We had a short time frame of having to actually have sex every day,” she said. “And we were excited that it didn’t start feeling like a chore.” Though his brother stated in a 2019 stand-up special that Young-White came out to him as bisexual, Young-White tweeted on August 4 from a since-deleted account that he doesn’t identify as gay or bisexual, further insinuating that Kehlani “lied on my sexuality to protect whatever lesbian identity was working for them at the time.” He also took issue with people viewing him as “a gay sperm donor” rather than a father.
What were Young-White’s initial allegations about Kehlani being in a “cult,” and why did he retract them?
In a July 24 filing obtained by Vulture, Young-White requested full custody of Adeya and child support. While he pointed to Kehlani’s busy schedule and the possibility that she has bipolar disorder (a diagnosis she has now publicly shared), the bulk of his concerns centered on Kehlani’s alleged involvement with what the filing describes as a “cult” led by Neto. This appears to be a reference to Ernesto “Neto” Quinoñez, who heads a nonprofit church in California with his wife, Naomi. (Kehlani has spoken about her 2020 introduction to an Afro-Caribbean religion called La Regla de Ocha, also known as Santeria or Lucumí, and previously identified Neto and Naomi as her godparents in the religion.)
In the complaint, Young-White claims he’s not listed on Adeya’s birth certificate because she was born through a home birth “orchestrated” by Neto’s group. Young-White learned Neto “has numerous accusations of committing sexual assault against women and young girls,” per the filing. When Kehlani is touring, Adeya is allegedly left alone in the care of “random adult members of the cult,” some of whom Young-White accused of drug abuse. Young-White said he was “physically restrained and threatened” by members in 2023 when he tried to intervene after discovering that Neto “performs ‘religious ceremonies’ on” Adeya while “no one is allowed to be in the room.” Young-White further claimed that he was kept away from his daughter because Neto had a vision that Young-White would kill her.
On August 5, 2024, TMZ published a piece about Young-White’s filing with a headline that claimed he feared his daughter was a “sex cult” victim. On August 6, Kehlani posted an Instagram Story statement calling recent reports “incredibly hurtful,” adding, “I strongly deny any claims that I have put my child in harm’s way, or left my child alone with anyone deemed dangerous or unsafe. I also do not align with any of the allegations made against my former religious community that have been stated in the media.” That day, Young-White also posted a statement on his now-private Instagram account calling for TMZ to issue a retraction since he “never said that [he thinks] Santeria is a sex cult.” He claimed that a former legal representative submitted the filing without his approval, adding that it contains “general recollections” from an initial consultation as well as language that he regrets and didn’t okay. However, Young-White said he still has concerns regarding Adeya’s care, noting that an amended complaint would soon “illustrate the full range of my concern.”
Screenshots have circulated online that are allegedly of Instagram Story statements from Neto’s wife, Naomi. The statements describe a member who allegedly caused “harm” in the community, was asked to “seek spiritual growth elsewhere” almost a year ago, and then made up “lies” with their friends about Neto being a rapist and the group being a “demonic cult” that engaged in financial abuse and scamming. Young-White suggested in an August 9 Instagram post that his cult-related claims came secondhand from sources who “no longer align” with their allegations. “I deeply regret and apologize for any role I played in perpetuating these claims,” he wrote. “I hope Priest Neto, his family, and affected members of the church receive just restoration.” Neto then shared Young-White’s statement in a Facebook post. After mentioning an unnamed “ex-goddaughter,” Neto said he has dealt with “whispers” that he is a predator or abuser for ten months. “I have every intention of seeking restoration for my damages yet clearing my name from the false slander and allegations was paramount to me and my wife,” he said.
What did Kehlani allege about Young-White in the temporary restraining-order request?
In an August 8 filing obtained by Vulture, Kehlani asked for a domestic-violence restraining order to “protect our daughter from her father’s emotional abuse, neglect and to protect me from his abuse which includes being physically, verbally, and emotionally abusive towards me beginning when I was pregnant with Adeya.” According to Kehlani, Young-White is prone to apparent “periods of despair” and “tirades of uncontrollable anger and rage.” She alleges that Young-White threw a guitar at her during a fight when she was seven months pregnant, and flung his phone to the ground, where it smashed in front of Adeya, the day after her birth.
The request outlines an alleged pattern of Young-White disappearing for months, then returning and promising to be a better father. Kehlani said she has allowed him to stay on her property to try to help him. According to Kehlani, Young-White “self-medicates” by smoking marijuana every day — including in front of Adeya — and taking psychedelics. She said she asked him to leave her property in mid-June on a day when he allegedly “smashed through” her locked bedroom doors in a “fit of anger,” calling her names and claiming that she had “trapped” him with the birth of their daughter. “If Young-White is physically and mentally settled and not exposing Adeya to secondhand marijuana smoke or an unsafe environment,” Kehlani said, “I will of course foster their relationship as I have done since her birth.” As part of the request, which was granted, Kehlani submitted audio recordings of Young-White and handwritten entries from a diary she says he left in her back house this year.
Young-White has claimed in multiple Instagram Stories that Kehlani has a history of making up abuse allegations. He alleged, for example, that Kehlani lied about being raped by the person she cheated on her ex-girlfriend Kiara with. After Kehlani’s restraining-order request became public, he suggested that Kehlani was “framing her abuse” as his, alleging that she actually “busted through” her own doors. “Everything else I’ll address later,” Young-White said. “But I want all false accusations of abuse to REST. that is not normal to scream abuse when you don’t know what to do.”
Where does the custody battle stand now?
Kehlani currently has sole custody of Adeya. A judge granted Kehlani a temporary restraining order against Young-White on August 9, finding that there was a “risk” that he might take Adeya without permission due to a “history” of abusing Kehlani and “not cooperating with [Kehlani] in parenting.” The restraining order will expire at the end of a court hearing scheduled for September 3. Until then, Young-White has been ordered to stay 100 yards away from Kehlani and Adeya and not contact either of them. Young-White and Kehlani must also meet virtually with a court-appointed mediator on the morning of September 4, unless they reach a parenting agreement before then.
Why are people talking about Kehlani’s race?
Kehlani’s restraining-order request details an incident in which Young-White allegedly punched through the dashboard of her car and made “racist remarks,” saying she was “acting like a ‘white woman.’” (In the filing, Kehlani noted, “I am mixed race and this is sensitive to me because I am often ostracized based on race.”) Young-White has also claimed in Instagram Stories that he has “run” from Kehlani multiple times in his life and was retaliated against with “violence and anti-blackness” the moment he tried to “leave for good.” Additionally, the statements attributed to Neto’s wife suggest that people should consider whether they’re being persuaded to see “yet another man of color” as a “perpetrator of violence” instead of a “victim of lies and deceit at the hands of a racially ambiguous white person with resources and fame.”
What else have people brought up about Kehlani?
Rumors that Kehlani was in a short-lived marriage earlier this year have resurfaced amid increased scrutiny on the singer’s interpersonal relationships. Public records show that Kehlani married Mariel Gomerez, who works for Beyoncé’s Parkwood and solo A&R’d Renaissance, on April 20. Gomerez filed to annul the marriage on June 16, but voluntarily dismissed that request just a few days later on June 20. The dismissed case was then sealed to the public on July 30… but not before some gossip outlets had already shared what they claimed was Gomerez’s initial annulment request. Per photos posted by TheInfoSpot and MediaTakeOut, Gomerez alleged that Kehlani’s intentions behind the marriage were to “benefit” her career and promote her album Crash; that Gomerez believed Kehlani had been “Method acting” as a “character” they made up; and that Kehlani had cheated.
Kehlani has also faced allegations from her former fan and friend Kay Cotten, who claimed in a TikTok that she was “gang stalked” by Kehlani and her friends. Cotten, who said she related to aspects of Javaughn’s experience, claimed that Kehlani took an unusual interest in her while she was sick and on her deathbed, but that the friendship ended once she got better. (Cotten’s post is no longer public, but screenshots remain online, including at the 3:53 mark in this video by TikToker @kellieintheknow.) In an August 11 Instagram Story statement, Kehlani denied wrongdoing, shared her own recollection of events, and claimed that she has been and still is trying to handle this privately. In a follow-up Story, Kehlani wrote that her “silence” is a sign she focused on the matters surrounding her daughter. “i’m a mother first and foremost, and a person who believes in God,” she said. “this has all taught me lessons about discernment, privacy & focus. back to what’s important. i hope to see you on tour.”
Is Kehlani still touring this fall?
Despite all this legal and personal drama, yes. Kehlani’s Crash world tour, featuring FLO and Anycia as openers, is currently still scheduled to kick off on September 4 (a potentially eventful day; Kehlani and Young-White were ordered to virtually meet with a mediator that morning if they do not reach a parenting agreement by then). Before hitting the road, Kehlani also dropped the 14-track sequel mixtape While We Wait 2 on August 28.
By submitting your email, you agree to our
Terms and Privacy Notice
and to receive email correspondence from us. This site is protected by reCAPTCHA and the Google
Privacy Policy and
Terms of Service apply.
or
Already a subscriber?
What is your email?
This email will be used to sign into all New York sites. By submitting your email, you agree to our Terms and Privacy Policy and to receive email correspondence from us.
Password must be at least 8 characters and contain:
Lower case letters (a-z)
Upper case letters (A-Z)
Numbers (0-9)
Special Characters (!@#$%^&*)
This password will be used to sign into all New York sites. By submitting your email, you agree to our Terms and Privacy Policy and to receive email correspondence from us.
You’re in!
As part of your account, you’ll receive occasional updates and offers from New York, which you can opt out of anytime.
or
Already a subscriber?
What is your email?
This email will be used to sign into all New York sites. By submitting your email, you agree to our Terms and Privacy Policy and to receive email correspondence from us.
Password must be at least 8 characters and contain:
Lower case letters (a-z)
Upper case letters (A-Z)
Numbers (0-9)
Special Characters (!@#$%^&*)
This password will be used to sign into all New York sites. By submitting your email, you agree to our Terms and Privacy Policy and to receive email correspondence from us.
You’re in!
As part of your account, you’ll receive occasional updates and offers from New York, which you can opt out of anytime.
Already a subscriber?
Already a subscriber?
`;
// integrate Sub(x) scripts and elements
if (hostname !== 'subs.nymag.com') { // do not integrate on this subdomain
document.head.appendChild(trackingScript);
document.body.insertAdjacentHTML('beforeend', subXAnimationElements);
}
There was an error processing the request. Please try again later."}).catch(e=>console.error("Error verifying email: ",e)))(r.querySelector(".content"),o.bannerCTAVerification)})):(l.remove(),s.remove()),o.dismissable||n.remove(),o.useAlertIcon||a.remove(),r.classList.add("show"),n.addEventListener("click",()=>{u(),r.classList.remove("show")})}else r.remove()}});
}, {"1":1,"6":6,"12":12,"35":35,"40":40}];
window.modules["global-nav.client"] = [function(require,module,exports){"use strict";const dom=require(3),auth=require(12),signInButton=dom.find(".user-signin"),signOutButton=dom.find(".user-signout"),globalNav=dom.find('[class^="global-nav"]'),body=dom.find("body"),dropdownItems=dom.findAll(".dropdown-wrap"),gtm=require(1),appendLandingPageParams=require(136),pageUri=require(124).getPageUri(),subscriptionPromoLinks=dom.findAll(".persist-params"),searchString=window.location.search||"";function closeDropdowns(e){let n=globalNav.querySelectorAll(".dropdown.open");dropdownItems.forEach(function(t){let o=t.querySelector(".dropdown");!n||t.contains(e.target)&&27!==e.keyCode||o.classList.remove("open")})}function gtmSendReport(e,n,t){let o={eventCategory:"ecommerce",eventAction:"componentClick",brand:e,dimension23:"global-nav",list:pageUri,pageZone:"header",variant:"nav-link"};"global-nav-link"===t&&(o.eventLabel=n.href),gtm.reportNow(o)}function updateElementTargetUrlsIfQueryStrings(e){if(searchString){const n=new URLSearchParams(searchString);let t=e.href;if(t.includes("?")){const o=t.split("?"),i=new URLSearchParams(o[1]);for(let e of n.entries())i.set(e[0],e[1]);t=`${o[0]}?${i.toString()}`,e.href=t}else e.href=`${t}?${n.toString()}`}}function init(e){const n=e.querySelectorAll(".to-landing-page");window.addEventListener("auth:init",()=>{signInButton.addEventListener("click",function(e){e.preventDefault(),auth.showEmbeddedLoginFlow("top navigation")}),signOutButton.addEventListener("click",function(e){e.preventDefault(),gtmSendReport("Sign Out",e.target,"user-info-link"),auth.logout()}),auth.isAuthenticated()&&e.classList.add("signed-in"),auth.isSubscriber()&&e.classList.add("subscribed"),e.querySelectorAll(".user-link").forEach(e=>{e.classList.add("active")}),subscriptionPromoLinks.forEach(e=>{updateElementTargetUrlsIfQueryStrings(e)}),appendLandingPageParams(n)})}dropdownItems.forEach(function(e){e.addEventListener("click",function(){e.querySelector(".dropdown").classList.toggle("open")})}),body.addEventListener("click",closeDropdowns),document.addEventListener("keydown",closeDropdowns),globalNav.addEventListener("click",function(e){let n=e.target;n.classList.contains("global-nav-track")&>mSendReport(n.text,n,"global-nav-link")}),module.exports=init;
}, {"1":1,"3":3,"12":12,"124":124,"136":136}];
window.modules["aaa-module-mounting.legacy"] = [function(require,module,exports){"use strict";const _pickBy=require(221),_each=require(408),Fingerprint2=require(407),DS=require(406),Eventify=require(246);function registerGlobals(){window.DS=DS,window.Eventify=Eventify,window.Fingerprint2=Fingerprint2,DS.value("Eventify",Eventify),DS.value("Fingerprint2",Fingerprint2),DS.value("$document",window.document),DS.value("$window",window)}function mountDollarSliceComponents(){DS.service("components",["$document","$module",function(e,n){var o=_pickBy(n.definitions,e=>e.providerStrategy===n.providers.controller),r=Object.keys(o);function t(e){return o=>{try{n.get(e,o)}catch(e){logMountError(o,e)}}}_each(r,n=>{var o=e.querySelectorAll('[data-uri*="/_components/'+n+'/"]'),r=e.querySelectorAll('[data-uri$="/_components/'+n+'"]');_each(o,t(n)),_each(r,t(n))}),this.components=r}]),DS.get("components")}function logMountError(e,n){const o=e.outerHTML.slice(0,e.outerHTML.indexOf(e.innerHTML));console.error("Error attaching controller to "+o,n)}registerGlobals(),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>{mountDollarSliceComponents()}):mountDollarSliceComponents();
}, {"221":221,"246":246,"406":406,"407":407,"408":408}];
window.modules["ads.legacy"] = [function(require,module,exports){"use strict";const _map=require(118),_forEach=require(107),_isString=require(268),_intersectionWith=require(409),_isEqual=require(274),_each=require(408),_debounce=require(182),_sortBy=require(205),page=require(124),visit=require(114);DS.service("adService",["Eventify","$cid","$document","$window",function(e,t,a,i){var o,n,s,r,d,c,u,l,g={},p=this,h=[],f=visit.getQueryParamsObject(["utm_campaign"]),m=document.querySelector('script[data-type="ad-a9"]'),b=[],w=!1,v=[],y=document.querySelector('script[data-name="ad-doubleverify"]');document.querySelector('script[data-name="concert-ads"]')||(i.NYM={},i.NYM.analytics={},i.NYM.analytics.adStartTime=i.performance.now(),i.googletag=i.googletag||{},i.googletag.cmd=i.googletag.cmd||[],u=i.googletag,(m||y)&&(i.googletag.cmd=i.googletag.cmd||[],i.googletag.cmd.push(function(){i.googletag.pubads().disableInitialLoad()})),m&&(l=i.setInterval(function(){void 0!==window.apstag&&void 0!==window.apstag.timeout&&(i.clearInterval(l),window.apstag.cleared=!0,l=null)},10),setTimeout(function(){l&&(i.clearInterval(l),i.googletag.pubads().refresh(),window.apstag||console.log("MESSAGE: Timeout for A9 load exceeded, aborting"))},500)),y&&(b.push(new Promise(function(e){w?e():v.push(e)})),c=i.setTimeout(T,2500)),o=function(e){var t,a,o=e.data,n=[];return o.loaded?e:(o.loaded=!0,t=null,(t=o.sizes?u.defineSlot(o.name,o.sizes,o.id).addService(u.pubads()):u.defineOutOfPageSlot(o.name,o.id).addService(u.pubads())).setTargeting("adid",o.id),f.hasOwnProperty("utm_campaign")&&t.setTargeting("utmcamp",f.utm_campaign),a=p.getAdCount(o.label),t.setTargeting("label",o.label+"_"+o.site+"-"+a),u.display(o.id),u.pubads().addEventListener("slotOnload",function(){i.NYM.analytics.firstAdLoadTime||(i.NYM.analytics.firstAdLoadTime=i.performance.now(),i.NYM.analytics.firstAdLoadLabel=e.data.label)}),n=_(o),Promise.all(b).then(function(){n?window.apstag&&window.apstag.cleared?window.apstag.fetchBids({slots:[n],timeout:window.apstag.timeout},function(){u.cmd.push(function(){window.apstag.setDisplayBids(),u.pubads().refresh([t],{changeCorrelator:!1})})}):y&&u.pubads().refresh([t],{changeCorrelator:!1}):u.pubads().refresh([t],{changeCorrelator:!1})}),e.slot=t,e)},n=function(e){var a,i,o,n=t(),s=e.getAttribute("data-name"),r=e.getAttribute("data-sizes"),d=e.getAttribute("data-label"),c=e.getAttribute("data-site");n=e.id,r&&r.length?(r=r.split(","),a=[],_map(r,function(e){e=e.split("x"),i=parseInt(e[0]),o=parseInt(e[1]),a.push([i,o])})):(e.classList.add("oop"),a=!1),this.data={id:n,name:s,sizes:a,loaded:!1,label:d,site:c},g[n]=this},r=function(e){u.cmd.push(function(){var t=o(e);g[e.data.id]=t})},s=function(e){var t=[];e.slot?(t=_(e))&&window.apstag&&window.apstag.cleared&&window.apstag.fetchBids({slots:[t],timeout:window.apstag.timeout},function(){u.cmd.push(function(){window.apstag.setDisplayBids(),u.pubads().refresh([e.slot],{changeCorrelator:!1})})}):e&&r(e)},u.cmd.push(function(){var e,t,o,n=page.getMeta("article:tag"),s=page.getMeta("author"),r=i.location.href,d=(e=a.head.querySelector(".head-gtm"),t=a.body.querySelector(".gtm"),e&&"top"===e.getAttribute("data-gtm")?"gtmtop":t&&"bottom"===t.getAttribute("data-gtm")?"gtmbottom":"");o=[],_forEach([n,s,d],function(e){_forEach(e.split(","),function(e){(e=e.trim().toLowerCase().replace(/\s/g,"-").replace(/\'|\’/g,"")).length&&o.push(e)})}),u.pubads().setTargeting("kw",o),u.pubads().setTargeting("entry_group",o),r=r.slice(r.lastIndexOf("/")+1),u.pubads().setTargeting("pn",r),u.companionAds().setRefreshUnfilledSlots(!0),u.pubads().enableAsyncRendering(),u.enableServices()}),this.load=r,this.create=function(e){return new n(e)},this.refresh=function(e){var t;_isString(e)?(t=this.getById(e),s(t)):s(e)},this.remove=function(e){var t=e.data.id;a.getElementById(t).innerHTML=""},this.getAdCount=function(e){var t,a=0,i=Object.keys(g);return _each(i,function(i){(t=g[i]).data.loaded&&t.data.label===e&&a++}),a},this.getById=function(e){return g[e]},d=_debounce(function(){var e={TopLeaderboard:1,RightColTopMPU:2,outOfPage:99,"homepageTakeover/TopLeaderboard":1},t=_sortBy(h,function(t){return e[t.data.label]||10});_forEach(t,function(e){return e.data.sizes?r(e):i.setTimeout(function(){r(e)},2e3)}),y&&window.PQ.cmd.push(()=>{try{window.PQ.loadSignals(["ids","bsc","vlp"],T)}catch(e){T(),console.error(`There has been an error loading Double Verify signals: ${e}`)}}),h=[]},10),this.addToPageLoadQueue=function(e){h.push(e),d()});function _(e){var t,a=e.sizes;return a=_intersectionWith(a,[[970,250],[970,90],[728,90],[300,600],[300,250],[320,100],[320,50]],_isEqual),e.sizes&&e.sizes.length&&(t={slotID:e.id,sizes:a,slotName:e.label}),t}function T(){i.clearTimeout(c),w=!0,_forEach(v,function(e){e()})}}]);
}, {"107":107,"114":114,"118":118,"124":124,"182":182,"205":205,"268":268,"274":274,"408":408,"409":409}];
window.modules["cid.legacy"] = [function(require,module,exports){"use strict";DS.service("$cid",function(){var r=Math.floor(100*Math.random());return function(){return"cid-"+ ++r}});
}, {}];
window.modules["client.legacy"] = [function(require,module,exports){"use strict";require("cid.legacy"),require("ads.legacy"),require("facebook.legacy"),require("aaa-module-mounting.legacy");
}, {"cid.legacy":"cid.legacy","aaa-module-mounting.legacy":"aaa-module-mounting.legacy","ads.legacy":"ads.legacy","facebook.legacy":"facebook.legacy"}];
window.modules["facebook.legacy"] = [function(require,module,exports){"use strict";DS.service("facebook",[function(){this.fb=function(i){window.FB&&window.FB[i].apply(this,Array.prototype.slice.call(arguments,1))}}]);
}, {}];
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o typeof key === 'string' && key.match(/\.legacy$/)).forEach(key => window.require(key));
}
function tryToMount(fn, el, name) {
try {
fn(el); // init the controller
} catch (e) {
const elementTag = el.outerHTML.slice(0, el.outerHTML.indexOf(el.innerHTML));
console.error(`Error initializing controller for "${name}" on "${elementTag}"`, e);
}
}
/**
* mount client.js component controllers
*/
function mountComponentModules() {
Object.keys(window.modules).filter(key => typeof key === 'string' && key.match(/\.client$/)).forEach(key => {
let controllerFn = window.require(key);
if (typeof controllerFn === 'function') {
const name = key.replace('.client', ''),
instancesSelector = `[data-uri*="_components/${name}/"]`,
defaultSelector = `[data-uri$="_components${name}"]`,
instances = document.querySelectorAll(instancesSelector),
defaults = document.querySelectorAll(defaultSelector);
for (let el of instances) {
tryToMount(controllerFn, el, name);
}
for (let el of defaults) {
tryToMount(controllerFn, el, name);
}
}
});
}
// Make sure that a `window.process.env.NODE_ENV` is available in the client for any dependencies,
// services, or components that could require it
// note: the `` value is swapped for the actual environment variable in /lib/cmd/compile/scripts.js
window.process = window.process || {};
window.process.env = window.process.env || {};
if (!window.process.env.NODE_ENV) {
window.process.env.NODE_ENV = '';
}
// note: legacy controllers that require legacy services (e.g. dollar-slice) must
// wait for DOMContentLoaded to initialize themselves, as the files themselves must be mounted first
mountLegacyServices();
mountComponentModules();
// ]]