Named the initialising function.
Given the plugin’s function the name $.crs(), so it can now be called on demand.
This commit is contained in:
parent
0c49dba088
commit
ca30d770e5
|
@ -6,7 +6,10 @@
|
||||||
* @url https://github.com/benkeen/country-region-dropdowns
|
* @url https://github.com/benkeen/country-region-dropdowns
|
||||||
* @licence MIT
|
* @licence MIT
|
||||||
*/
|
*/
|
||||||
(function() {
|
(function($) {
|
||||||
|
|
||||||
|
$.crs = function() {
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var _countryClass = "crs-country";
|
var _countryClass = "crs-country";
|
||||||
|
@ -412,4 +415,6 @@
|
||||||
// when the page has loaded, run our init function
|
// when the page has loaded, run our init function
|
||||||
_contentLoaded(window, _init);
|
_contentLoaded(window, _init);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
})();
|
})();
|
Loading…
Reference in New Issue
Block a user