mirror of
https://github.com/jquery/jquery.git
synced 2026-02-01 14:05:00 -05:00
@@ -1,10 +1,15 @@
|
||||
define([
|
||||
"./core",
|
||||
"./var/rnotwhite"
|
||||
], function( jQuery, rnotwhite ) {
|
||||
|
||||
// String to Object options format cache
|
||||
var optionsCache = {};
|
||||
|
||||
// Convert String-formatted options into Object-formatted ones and store in cache
|
||||
function createOptions( options ) {
|
||||
var object = optionsCache[ options ] = {};
|
||||
jQuery.each( options.match( core_rnotwhite ) || [], function( _, flag ) {
|
||||
jQuery.each( options.match( rnotwhite ) || [], function( _, flag ) {
|
||||
object[ flag ] = true;
|
||||
});
|
||||
return object;
|
||||
@@ -195,3 +200,5 @@ jQuery.Callbacks = function( options ) {
|
||||
|
||||
return self;
|
||||
};
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user