How to use the can-connect.superMap function in can-connect

To help you get started, we’ve selected a few can-connect examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github canjs / can-connect / can / super-map / super-map.js View on Github external
options.cacheConnection = connect([localCache],{
				name: options.name+"Cache",
				idProp: options.idProp,
				algebra: options.algebra
			});
		}
		behaviors.push(callbacksCache,fallThroughCache);
	}
	// Handles if jQuery isn't provided.
	if($ && $.ajax) {
		options.ajax = $.ajax;
	}
	return connect(behaviors,options);
};

module.exports = connect.superMap;