Nickelodeon stars are reacting to Investigation Discovery’s harrowing docuseries, Quiet on Set: The Dark Side of Kids TV. In the midst of revelations that a dialogue coach sexually abused Drake Bell and allegations that producer Dan Schneider wrote lewd jokes for child actors to perform, former Nickelodeon stars have shared messages of support to survivors or have apologized (twice now) for mocking survivors’ experiences. The four-part series zeroes in on the network, tracking child abuse at the hands of crew members, the sexual innuendos in Schneider’s shows, and accusations that the producer fostered toxic work environments on his many productions. It also focuses on Bell, who, in on-camera interviews, discloses that he had been repeatedly sexually assaulted by his dialogue coach, Brian Peck, while working at the network. All That and The Amanda Show actors also shared their discomfort on sets along with Alexa Nikolas, who previously spoke about her experience in a 2022 exposé of Schneider.
Amid the abuse revelations, Nickelodeon colleague Devon Werkheiser, star of Ned’s Declassified School Survival Guide, initially mocked Bell’s testimony in a TikTok, only to later apologize for his actions. Below, what the network’s stars have said about Quiet on Set so far.
Keke Palmer, True Jackson, VP
Although Keke Palmer was never on a Dan Schneider show, her time on True Jackson, VP put her on the same lot. On August 6’s episode of Baby This Is Keke Palmer, Palmer and her mother reflected on Quiet on Set as well as their personal experiences with Schneider. “My honest opinion is I thought the whole atmosphere of the Dan Schneider set was very weird, very cultish,” Keke’s mother Sharon said. “The parents were very secretive, and I honestly thought they all took themselves way too seriously.”
Elizabeth Gilles, Victorious
In a Varietyinterview, Elizabeth Gilles said she and Ariana Grande watched Quiet on Set together over FaceTime. “We watched it together, and then we got together later that week or the next week, and we sort of broke the whole thing down and talked about it, and reprocessed everything together,” she said. “There was a lot to go through.” Gilles played Jade on Victorious, and knew Grande from starring on Broadway together in 13.
Gilles said she looked back on her show “incredibly positively,” but that it was good to revisit those memories “as an adult through a new lens.” Gilles recommended that parents be “wherever they want to be, whenever they want to be” during a shoot with children, while also recognizing that sometimes the parents are part of the problem. “I almost wonder if a psychiatrist or a psychologist should evaluate the child and speak to the parents before they sign them off to let them be on a set or a show, just because it’s such a huge undertaking, and children don’t often know what a huge undertaking it is, and then they can feel trapped or pressured,” she said.
Ariana Grande, Victorious and Sam & Cat
Ariana Grande addressed Quiet on Set on Podcrushed, saying she has been reprocessing her memories of the shows she starred on. “Obviously my relationship to it has been — and is currently — changing,” she said. “I’ve been reprocessing a lot of what the experience was like.” Grande also said therapists should be involved on sets with child actors. She also reevaluated the online content that people have found sexually suggestive. “You think about it, If I had a daughter…,” she said “There’s a bottom line. The things that weren’t approved for the network were snuck onto our website. That is another discovery. Going into it, I guess I’m upset.”
Kel Mitchell, All That and Kenan & Kel
Kel Mitchell spoke about his experiences with Dan Schneider on the Baby, This Is Keke Palmer podcast in June 2024. He said the vibe on All That changed when Schneider took over for former showrunner Brian Robbins. “They left us with the head writer, Dan Schneider. So he’s writing, and me and him kind of bump heads a little bit,” Mitchell said. “I remember me and Dan had a big argument on set. He was like, ‘Let’s go over here to this room right here, in this closet.’ He closed the door and he just took off, you know, just yelling all this wild stuff.”
Matthew Underwood, Zoey 101
Underwood, who played Logan Reese on Zoey 101, shared a statement to Instagram revealing that he was sexually harassed and assaulted when he was 19 by his then agent. “I reported him to the agency and he has since been fired — although he is still active in the industry. This experience provoked my move away from LA and ending my pursuit of acting,” Underwood wrote, explaining that he was sharing this as the result of pushback urging him to speak out following the release of Quiet on Set. “I imagine many of my friends in the business are being equally harassed if they aren’t joining in the chorus, so I’m sharing this with hope that some of you can recognize that just because a person doesn’t shout from the rooftops that pedophiles are bad or that people can suck — that does not mean they don’t have their own reasons for staying silent, good reasons, personal reasons,” he wrote. Underwood continued on to address his own experience at Nickelodeon, and with Dan Schneider, writing, “I never had a bad experience working on set of a Nickelodeon show and I never had a bad experience with Dan. I have nothing to add to the conversation that anyone would care to hear. I like to believe people have the capacity to be better humans and Dan appears to recognize that he had been an asshole in his past. I like to believe he is fully capable of being a creator and coworker everyone can enjoy working with.”
Kenan Thompson, All That and Kenan & Kel
Speaking on the Tamron Hall Show, Thompson said he personally had not experienced situations like the ones in the doc. “It’s tough for me because I can’t really speak on things that I never witnessed, you know what I’m saying? Because all these things happened after I left, basically,” he said. Thompson said that Dan Schneider’s “created by” credit on Kenan & Kel was basically the extent of his involvement with that show. “Our worlds wasn’t really overly overlapping like that outside of All That, necessarily,” he said. “And then all of that negativity kinda started happening outside of our tenure there, you know what I mean? So I wasn’t really aware of a lot of it.” Thompson said his heart goes out to anyone who’s been victimized. He urged interested parties to “investigate more,” because “It’s supposed to be a safe place for kids. And to hear all about that is just like, ‘How dare you?’”
Josh Peck, Drake & Josh
Bell’s Drake & Josh co-star shared an Instagram post addressing the revelations on March 21. “I finished the Quiet on Set documentary and took a few days to process,” Josh Peck wrote. “I reached out to Drake privately, but want to give my support for the survivors who were brave enough to share their stories of emotional and physical abuse on Nickelodeon sets with the world. Children should be protected.” He added that he hopes “it can bring healing” for the victims and a “necessary change” to the industry.
Drake Bell, Drake & Josh
In his first interview after the documentary aired, Bell spoke with Sarah Fraser on The Sarah Fraser Showabout his reaction to Nickelodeon’s response to Quiet on Set. “There’s a very well-tailored response saying, ‘Learning about his trauma,’ because they couldn’t say that they didn’t know about this or what had happened, or anything. So I think that was a really well-tailored response by probably some big attorney in Hollywood,” he explained. “I have to pay for my own therapy, I have to figure out what — I mean if there was anything, if there was any truth behind them actually caring, there would be something more than quotes on a page by obviously a legal representative telling them exactly how to tailor a response.” Bell also revealed he checked himself back into rehab after meeting with producers.
Bell also felt “cautious about involving” his father in the documentary, explaining, “I’m sure that my dad puts a lot of blame on himself, you know? And I thought that this might be an opportunity for him to realize that, you know, that it’s one person’s fault.”
Nancy Sullivan, Drake & Josh
Sullivan, who played Bell’s onscreen mom in Drake & Josh, sent a message of support on Instagram. “They weren’t my real kids, but I’ll always love them,” Sullivan captioned a photo of teenage Bell. “It broke my heart into a million pieces to hear just how much Drake was holding inside while we were working together. I was both devastated and proud seeing the man he’s grown into sit down on camera and bravely tell his truth.” Her message ends with the hope that “memories of the joy he had on our shows will someday greatly overshadow the pain” before “sending love” to the actor.
Devon Werkheiser, Lindsey Shaw, and Daniel Curtis Lee, Ned’s Declassified School Survival Guide
The hosts of Ned’s Declassified Podcast Survival Guide, who were child actors on the Nickelodeon show Ned’s Declassified School Survival Guide,apologized for appearing to mock the abuse Bell faced earlier this week.“We fucked up,” Devon Werkheiser said on the podcast on March 22. Co-host Daniel Curtis Lee said “yeah, absolutely” in agreement. “Now, having seen the documentary, it’s disturbing,” Werkheiser added, “Now we’ve watched it, and I get it. If I had just watched especially that third episode and then watched us joking like that … I would be like, ‘Are they sociopaths? Is something wrong with them?’” Elsewhere on the episode, Werkheiser described how he felt gutted when Bell re-posted the clip where he joked about the abuse. “I have to say, when I saw our little fucking TikTok clip and that Drake had retweeted it, I was just watching his interview [in Quiet on Set]. And someone sent me that he had retweeted it, and then I saw the clip and like … I put out a fucking apology immediately.I felt like a piece of shit,” he admitted. Declassified star and podcast co-host Lindsey Shaw simply said, “I am sorry.”
It was a TikTok livestream on March 18 where Werkheiser joked about the abuse revelations with Shaw and Lee. “Daniel, we told you never to speak about that,” he told his co-host during the livestream. “Get back in your hole, Daniel, and give me your holes!” He tried to pull himself together on the livestream, saying, “Sorry, we shouldn’t joke about this. We really shouldn’t. Our set was not like that.” The following day, Werkheiser addressed his behavior on Twitter. “I feel horrible that my dumbass was even speaking about this without seeing it,” he wrote. “I watched Quiet on Set tonight and am horrified by the gravity of what Drake and others shared.”
Alexa Nikolas, Zoey 101
Following Dan Schneider’s response to Quiet on Set, Nikolas, who participated in the documentary, spoke out against the producer’s comments. In a video posted to the YouTube channel for Eat Predators, her movement created to end predatory behavior in Hollywood, Nikolas said, “I’m sorry, him centering what he feels is bizarre to me. It’s like you literally… you are awful! To be quite honest with you, awful. You’re embarrassed? Not embarrassed enough! Not embarrassed enough to go reach out to the people you actually harmed.” She went on to add, “I’m going to cut to the chase here: you don’t feel anything, Dan. You have no idea what accountability is. You’re searching for it, maybe, but you haven’t landed on it. That’s for sure. This is not the way.”
Jack Salvatore Jr., Zoey 101
Salvatore, who played Mark Del Figgalo on Zoey 101 and worked in the writers’ room of Sam & Cat and Victorious, posted a video to his Instagram following the release of the documentary. “We could talk about the massages. We could talk about the fact that [Dan Schneider] would literally count his gold coin collection in front of his crew who was living paycheck to paycheck. We could talk about how sometimes he would bring out his shotgun to scare one of the writers when they were working at his house,” Salvatore said, before adding, “But what I do want to talk about is never letting this stuff happen again. This is an entire industry built on hope and dreams and adrenaline and wish fulfillment, and that can be a very dangerous thing for megalomaniacs to wield.” Salvatore continued on to say that despite worries that speaking out could impact his career, his silence would perpetuate this kind of behavior. “And until [Schneider] goes on 60 Minutes to answer some questions from some real journalists and not a cast member of his that he’s paying to be there…apology not accepted.”
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(4),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(135),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,"4":4,"12":12,"124":124,"135":135}];
window.modules["aaa-module-mounting.legacy"] = [function(require,module,exports){"use strict";const _pickBy=require(221),_each=require(406),Fingerprint2=require(408),DS=require(407),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(406),_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,"406":406,"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","ads.legacy":"ads.legacy","facebook.legacy":"facebook.legacy","aaa-module-mounting.legacy":"aaa-module-mounting.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();
// ]]