3 function addGetHookIf( conditionFn, hookFn ) {
4 // Define the hook, we'll check on the first run if it's really needed.
7 var condition = conditionFn();
9 if ( condition == null ) {
10 // The test was not ready at this point; screw the hook this time
11 // but check again when needed next time.
16 // Hook not needed (or it's not possible to use it due to missing dependency),
18 // Since there are no other hooks for marginRight, remove the whole object.
23 // Hook needed; redefine it so that the support test is not executed again.
25 return (this.get = hookFn).apply( this, arguments );