aboutsummaryrefslogtreecommitdiffstats
path: root/src/callbacks.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/callbacks.js')
-rw-r--r--src/callbacks.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/callbacks.js b/src/callbacks.js
index 84c834666..fd80bd905 100644
--- a/src/callbacks.js
+++ b/src/callbacks.js
@@ -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;
};
+
+});