summaryrefslogtreecommitdiffstats
path: root/js/vendor/jquery/src/css/addGetHookIf.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/vendor/jquery/src/css/addGetHookIf.js')
-rw-r--r--js/vendor/jquery/src/css/addGetHookIf.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/js/vendor/jquery/src/css/addGetHookIf.js b/js/vendor/jquery/src/css/addGetHookIf.js
index 81d694cb0..e12f3598d 100644
--- a/js/vendor/jquery/src/css/addGetHookIf.js
+++ b/js/vendor/jquery/src/css/addGetHookIf.js
@@ -5,15 +5,13 @@ function addGetHookIf( conditionFn, hookFn ) {
return {
get: function() {
if ( conditionFn() ) {
- // Hook not needed (or it's not possible to use it due to missing dependency),
- // remove it.
- // Since there are no other hooks for marginRight, remove the whole object.
+ // Hook not needed (or it's not possible to use it due
+ // to missing dependency), remove it.
delete this.get;
return;
}
// Hook needed; redefine it so that the support test is not executed again.
-
return (this.get = hookFn).apply( this, arguments );
}
};