5 function addGetHookIf( conditionFn, hookFn ) {
7 // Define the hook, we'll check on the first run if it's really needed.
10 if ( conditionFn() ) {
12 // Hook not needed (or it's not possible to use it due
13 // to missing dependency), remove it.
18 // Hook needed; redefine it so that the support test is not executed again.
19 return ( this.get = hookFn ).apply( this, arguments );