mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Tests: Skip JSHint in browsers that don't support Function.prototype.bind() to work around a bug in JSHint.
This commit is contained in:
parent
161d7ee389
commit
8eeb0e7d88
@ -59,7 +59,9 @@ QUnit.config.urlConfig.push({
|
|||||||
|
|
||||||
jshintLoaded = false;
|
jshintLoaded = false;
|
||||||
TestHelpers.testJshint = function( module ) {
|
TestHelpers.testJshint = function( module ) {
|
||||||
if ( QUnit.urlParams.nojshint ) {
|
// Function.prototype.bind check is needed because JSHint doesn't work in ES3 browsers anymore
|
||||||
|
// https://github.com/jshint/jshint/issues/1384
|
||||||
|
if ( QUnit.urlParams.nojshint || !Function.prototype.bind ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user