can-map.js
function (attr, val) {
			var type = typeof attr;
			if(attr === undefined) {
				return this._getAttrs();
			} else if (type !== "string" && type !== "number") {
				// Get or set multiple attributes.
				return this._setAttrs(attr, val);
			}
			else if (arguments.length === 1) {
				// Get a single attribute.
				return this._get(attr);
			} else {
				// Set an attribute.
				this._set(attr+"", val);
				return this;
			}
		}
function (attr, val) {
			var type = typeof attr;
			if(attr === undefined) {
				return this._getAttrs();
			} else if (type !== "string" && type !== "number") {
				// Get or set multiple attributes.
				return this._setAttrs(attr, val);
			}
			else if (arguments.length === 1) {
				// Get a single attribute.
				return this._get(attr);
			} else {
				// Set an attribute.
				this._set(attr+"", val);
				return this;
			}
		}
function ( attr , val ) { var type = typeof attr ; if ( attr === undefined ) { return this . _getAttrs ( ) ; } else if ( type !== "string" && type !== "number" ) { // Get or set multiple attributes. return this . _setAttrs ( attr , val ) ; } else if ( arguments . length === 1 ) { // Get a single attribute. return this . _get ( attr ) ; } else { // Set an attribute. this . _set ( attr + "" , val ) ; return this ; } }
### attr The primary get/set interface for can.Map. Calls `_get`, `_set` or `_attrs` depending on how it is called.
### attr The primary get / set interface for can . Map . Calls _get _set or _attrs depending on how it is called .