mirror of
https://github.com/jquery/jquery.git
synced 2024-12-09 08:04:24 +00:00
9c8a3ecdc4
Utilize the assert module, avoid inline JSHint comments.
10 lines
303 B
JavaScript
10 lines
303 B
JavaScript
"use strict";
|
|
|
|
var assert = require( "assert" );
|
|
|
|
// Check if the object we got is the jQuery object by invoking a basic API.
|
|
module.exports = function ensureJQuery( jQuery ) {
|
|
assert( /^jQuery/.test( jQuery.expando ),
|
|
"jQuery.expando was not detected, the jQuery bootstrap process has failed" );
|
|
};
|