diff options
Diffstat (limited to 'libs/bower_components/jquery/src/data/var')
-rw-r--r-- | libs/bower_components/jquery/src/data/var/acceptData.js | 18 | ||||
-rw-r--r-- | libs/bower_components/jquery/src/data/var/dataPriv.js | 5 | ||||
-rw-r--r-- | libs/bower_components/jquery/src/data/var/dataUser.js | 5 |
3 files changed, 28 insertions, 0 deletions
diff --git a/libs/bower_components/jquery/src/data/var/acceptData.js b/libs/bower_components/jquery/src/data/var/acceptData.js new file mode 100644 index 0000000000..6e15af1278 --- /dev/null +++ b/libs/bower_components/jquery/src/data/var/acceptData.js @@ -0,0 +1,18 @@ +define( function() { + +/** + * Determines whether an object can have data + */ +return function( owner ) { + + // Accepts only: + // - Node + // - Node.ELEMENT_NODE + // - Node.DOCUMENT_NODE + // - Object + // - Any + /* jshint -W018 */ + return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType ); +}; + +} ); diff --git a/libs/bower_components/jquery/src/data/var/dataPriv.js b/libs/bower_components/jquery/src/data/var/dataPriv.js new file mode 100644 index 0000000000..9a1343ce1a --- /dev/null +++ b/libs/bower_components/jquery/src/data/var/dataPriv.js @@ -0,0 +1,5 @@ +define( [ + "../Data" +], function( Data ) { + return new Data(); +} ); diff --git a/libs/bower_components/jquery/src/data/var/dataUser.js b/libs/bower_components/jquery/src/data/var/dataUser.js new file mode 100644 index 0000000000..9a1343ce1a --- /dev/null +++ b/libs/bower_components/jquery/src/data/var/dataUser.js @@ -0,0 +1,5 @@ +define( [ + "../Data" +], function( Data ) { + return new Data(); +} ); |