aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2016-02-16 04:13:00 -0800
committerChris Rebert <[email protected]>2016-02-16 04:13:00 -0800
commit9b4cfdceda2598184f6ba05ea223f5359822ffcd (patch)
tree788a111f3f24f93fa6620c2d5e593cb2783f75b1 /js
parentdd18b664655c11b16a4dcb395c6b908f0e89b108 (diff)
parentff4792fcefbe7369c95cf7b2d06e7d211b1c3991 (diff)
downloadbootstrap-9b4cfdceda2598184f6ba05ea223f5359822ffcd.tar.xz
bootstrap-9b4cfdceda2598184f6ba05ea223f5359822ffcd.zip
Merge pull request #19220 from twbs/jq-event-alias-throw-err
js/tests/index.html: Replace jQuery event alias methods with functions that throw errors
Diffstat (limited to 'js')
-rw-r--r--js/tests/index.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/js/tests/index.html b/js/tests/index.html
index a91725cc5..e4cbae42f 100644
--- a/js/tests/index.html
+++ b/js/tests/index.html
@@ -44,7 +44,10 @@
'undelegate'
]
for (var i = 0; i < eventAliases.length; i++) {
- $.fn[eventAliases[i]] = undefined
+ var eventAlias = eventAliases[i]
+ $.fn[eventAlias] = function () {
+ throw new Error('Using the ".' + eventAlias + '()" method is not allowed, so that Bootstrap can be compatible with custom jQuery builds which exclude the "event aliases" module that defines said method. See https://github.com/twbs/bootstrap/blob/master/CONTRIBUTING.md#js')
+ }
}
})()
</script>