Sha256: 6a3ef13723c3910ab7f103dd3f00f3622602f2361c8a8b1b2d2fbc0835bdbc2a

Contents?: true

Size: 1.16 KB

Versions: 9

Compression:

Stored size: 1.16 KB

Contents

(function (factory) {
	"use strict";
	if (typeof define === 'function' && define.amd) {
		define('jstree.checkbox', ['jquery','jstree'], factory);
	}
	else if(typeof exports === 'object') {
		factory(require('jquery'), require('jstree'));
	}
	else {
		factory(jQuery);
	}
}(function ($, undefined) {
	"use strict";
	if(window.customElements && Object && Object.create) {
		var proto = Object.create(HTMLElement.prototype);
		proto.createdCallback = function () {
			var c = { core : {}, plugins : [] }, i;
			for(i in $.jstree.plugins) {
				if($.jstree.plugins.hasOwnProperty(i) && this.attributes[i]) {
					c.plugins.push(i);
					if(this.getAttribute(i) && JSON.parse(this.getAttribute(i))) {
						c[i] = JSON.parse(this.getAttribute(i));
					}
				}
			}
			for(i in $.jstree.defaults.core) {
				if($.jstree.defaults.core.hasOwnProperty(i) && this.attributes[i]) {
					c.core[i] = JSON.parse(this.getAttribute(i)) || this.getAttribute(i);
				}
			}
			$(this).jstree(c);
		};
		// proto.attributeChangedCallback = function (name, previous, value) { };
		try {
			window.customElements.define("vakata-jstree", function() {}, { prototype: proto });
		} catch (ignore) { }
	}
}));

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
sequenceserver-3.1.3 public/vendor/github/vakata/jstree@3.3.8/src/vakata-jstree.js
sequenceserver-3.1.2 public/vendor/github/vakata/jstree@3.3.8/src/vakata-jstree.js
sequenceserver-3.1.1 public/vendor/github/vakata/jstree@3.3.8/src/vakata-jstree.js
sequenceserver-3.1.0 public/vendor/github/vakata/jstree@3.3.8/src/vakata-jstree.js
sequenceserver-3.0.1 public/vendor/github/vakata/jstree@3.3.8/src/vakata-jstree.js
sequenceserver-3.0 public/vendor/github/vakata/jstree@3.3.8/src/vakata-jstree.js
sequenceserver-2.2.0 public/vendor/github/vakata/jstree@3.3.8/src/vakata-jstree.js
sequenceserver-2.1.0 public/vendor/github/vakata/jstree@3.3.8/src/vakata-jstree.js
sequenceserver-2.0.0 public/vendor/github/vakata/jstree@3.3.8/src/vakata-jstree.js