I wasdoingsomethingelse, preparingforanothervideo, and I cameacrosssomethingthatgaveme a reallygoodreasontoregister a custompropertytopreventinheritance.
I wanttoshowyouwhatthatwasbecause I thinkit's oneofthethingswithregisteredcustompropertiesthatgoesundertheradar. Soyou'llseehere I have a containertypeseton a wholebunchofdifferentthings.
Becausewhenitgetsbigger, allof a suddenitgoestotwocolumnsandthisareaherealsogoestotwocolumns.
大きくなると突然2列になり、このエリアも2列になるからだ。
Butthisshouldeitherbezeroorthreecolumns, or I guessoneorthreecolumns. Sotohelpyouunderstandwhat's actuallyhappeningthere, becauseittookme a secondtounderstandwhatwasactuallygoingon, iswe'regonnachangetheoutlinethat's ontheseelementswhentheygettothetwocolumnworldhere.
Sothatcallcountoftwoisbeingpasseddownintothisothercontainer, which I don't wanttohappen. Butluckilynowwecanregistercustomproperties, andthisisinallbrowsersnow.
Andbydefault, thatistrue, butwecanswitchthatovertofalse. Thesyntaxhereissortofthetrickiestpart, and I wouldjustlookup a listforwhatyoumightwannaputforyoursyntax.
Stronglyrecommendthatyougiveit a readifyouwannaknowmoreaboutregisteringcustompropertiesandsomeoftheusecasesyoumighthaveforthem. Now, onething I haven't donehereissaidwhatpropertythisisactuallyon.
Sotonameit, I justcomehere, andthatwasmycallcount, I thinkiswhat I calledit.
だから名前をつけるために、ここに来たんだ。
Sonow, if I didthatcorrectly, and I'm usingtherightnamethere, so I'm registeringmypropertycallcount, and I'm sayingit's a numberwithaninitialvalueofoneandinherits a false.
Andthisactually, I'vethoughtof a wholebunchofgoodusecasesthat I canusethisfornow, so I'm prettyexcitedaboutit. Andwiththat, I wouldliketothankmyenablersofawesome, Andrew, Philip, Simon, andTim, aswellasallofmypatronsandallmynewchannelmembers.