File: demos/startbootstrap-sb-admin-2/bower_components/jquery/src/data/accepts.js

Recommend this page to a friend!
  Classes of Emmanuel Podvin   Blapy   demos/startbootstrap-sb-admin-2/bower_components/jquery/src/data/accepts.js   Download  
File: demos/startbootstrap-sb-admin-2/bower_components/jquery/src/data/accepts.js
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Blapy
jQuery plugin to load linked pages using AJAX
Author: By
Last change: Update of demos/startbootstrap-sb-admin-2/bower_components/jquery/src/data/accepts.js
Date: 3 years ago
Size: 383 bytes
 

Contents

Class file image Download
define([ "../core" ], function( jQuery ) { /** * Determines whether an object can have data */ jQuery.acceptData = function( owner ) { // Accepts only: // - Node // - Node.ELEMENT_NODE // - Node.DOCUMENT_NODE // - Object // - Any /* jshint -W018 */ return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType ); }; return jQuery.acceptData; });