RMS.Manage.Web/bower_components/bootstrap-fileinput-master/js/plugins/sortable.js

(开头部分) 30KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/**!
 * KvSortable
 * @author	RubaXa   <trash@rubaxa.org>
 * @license MIT
 *
 * Changed kvsortable plugin naming to prevent conflict with JQuery UI KvSortable
 * @author Kartik Visweswaran
 */
(function (factory) {
	"use strict";

	if (typeof define === "function" && define.amd) {
		define(factory);
	}
	else if (typeof module != "undefined" && typeof module.exports != "undefined") {
		module.exports = factory();
	}
	else if (typeof Package !== "undefined") {
		KvSortable = factory();  // export for Meteor.js
	}
	else {
		/* jshint sub:true */
		window["KvSortable"] = factory();
	}
})(function () {
	"use strict";
	
	if (typeof window === "undefined" || typeof window.document == "undefined") {
		return function() {
			throw new Error( "sortable.js requires a window with a document" );
		}
	}

	var dragEl,
		parentEl,
		ghostEl,
		cloneEl,
		rootEl,
		nextEl,

		scrollEl,
		scrollParentEl,

		lastEl,
		lastCSS,
		lastParentCSS,

		oldIndex,
		newIndex,

		activeGroup,
		autoScroll = {},

		tapEvt,
		touchEvt,

		moved,

		/** @const */
		RSPACE = /\s+/g,
后面还有 1273 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。