mirror of
				https://github.com/aclindsa/moneygo.git
				synced 2025-10-30 17:33:26 -04:00 
			
		
		
		
	Add AccountTree to select accounts
This commit is contained in:
		
							
								
								
									
										49
									
								
								static/external/classnames/index.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										49
									
								
								static/external/classnames/index.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,49 @@ | ||||
| /*! | ||||
|   Copyright (c) 2015 Jed Watson. | ||||
|   Licensed under the MIT License (MIT), see | ||||
|   http://jedwatson.github.io/classnames | ||||
| */ | ||||
|  | ||||
| (function () { | ||||
| 	'use strict'; | ||||
|  | ||||
| 	function classNames () { | ||||
|  | ||||
| 		var classes = ''; | ||||
|  | ||||
| 		for (var i = 0; i < arguments.length; i++) { | ||||
| 			var arg = arguments[i]; | ||||
| 			if (!arg) continue; | ||||
|  | ||||
| 			var argType = typeof arg; | ||||
|  | ||||
| 			if ('string' === argType || 'number' === argType) { | ||||
| 				classes += ' ' + arg; | ||||
|  | ||||
| 			} else if (Array.isArray(arg)) { | ||||
| 				classes += ' ' + classNames.apply(null, arg); | ||||
|  | ||||
| 			} else if ('object' === argType) { | ||||
| 				for (var key in arg) { | ||||
| 					if (arg.hasOwnProperty(key) && arg[key]) { | ||||
| 						classes += ' ' + key; | ||||
| 					} | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
|  | ||||
| 		return classes.substr(1); | ||||
| 	} | ||||
|  | ||||
| 	if (typeof module !== 'undefined' && module.exports) { | ||||
| 		module.exports = classNames; | ||||
| 	} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd){ | ||||
| 		// AMD. Register as an anonymous module. | ||||
| 		define(function () { | ||||
| 			return classNames; | ||||
| 		}); | ||||
| 	} else { | ||||
| 		window.classNames = classNames; | ||||
| 	} | ||||
|  | ||||
| }()); | ||||
		Reference in New Issue
	
	Block a user