Lines Matching refs:_data

135 		this._data = {  class in AnonymousFunctiona82bfad20500
458 this._data[deco] = {};
498 this._data.core.ready = false;
499 this._data.core.loaded = false;
500 this._data.core.rtl = (this.element.css("direction") === "rtl");
501 this.element[this._data.core.rtl ? 'addClass' : 'removeClass']("jstree-rtl");
518 this._data.core.original_container_html = this.element.find(" > ul > li").clone(true);
519 this._data.core.original_container_html
527 this._data.core.li_height = this.get_container_ul().children("li").first().height() || 24;
617 if(this._data.core.rtl) {
700 if(data.node.id === '#' && !this._data.core.loaded) {
701 this._data.core.loaded = true;
712 if(!this._data.core.ready) {
715 this._data.core.ready = true;
716 if(this._data.core.selected.length) {
719 for(i = 0, j = this._data.core.selected.length; i < j; i++) {
720 tmp = tmp.concat(this._model.data[this._data.core.selected[i]].parents);
727 this.trigger('changed', { 'action' : 'ready', 'selected' : this._data.core.selected });
801 this._data.core.themes.dots = s.dots;
802 this._data.core.themes.stripes = s.stripes;
803 this._data.core.themes.icons = s.icons;
808 this[ this._data.core.themes.dots ? "show_dots" : "hide_dots" ]();
809 this[ this._data.core.themes.icons ? "show_icons" : "hide_icons" ]();
810 this[ this._data.core.themes.stripes ? "show_stripes" : "hide_stripes" ]();
813 this._data.core.focused = null;
820 this._data.core.focused = tmp.id;
827 if(+(new Date()) - was_click > 500 && !this._data.core.focused) {
1195 …this._data.core.selected = $.vakata.array_remove_item(this._data.core.selected, obj.children_d[k]);
1202 …this.trigger('changed', { 'action' : 'load_node', 'node' : obj, 'selected' : this._data.core.selec…
1315 …return this._append_html_data(obj, this._data.core.original_container_html.clone(true), function (…
1355 …this._data.core.last_error = { 'error' : 'ajax', 'plugin' : 'core', 'id' : 'core_04', 'reason' : '… class
1356 this.settings.core.error.call(this, this._data.core.last_error);
1361 …this._data.core.last_error = { 'error' : 'ajax', 'plugin' : 'core', 'id' : 'core_04', 'reason' : '… class
1362 this.settings.core.error.call(this, this._data.core.last_error);
1372 …this._data.core.last_error = { 'error' : 'nodata', 'plugin' : 'core', 'id' : 'core_05', 'reason' :…
1373 this.settings.core.error.call(this, this._data.core.last_error);
1385 …this._data.core.last_error = { 'error' : 'nodata', 'plugin' : 'core', 'id' : 'core_06', 'reason' :…
1386 this.settings.core.error.call(this, this._data.core.last_error);
1423 s = this._data.core.selected.length,
1456 if(this._data.core.selected.length !== s) {
1457 this.trigger('changed', { 'action' : 'model', 'selected' : this._data.core.selected });
1490 'sel' : this._data.core.selected
1768 … var i, j, a = rslt.add, r = rslt.sel, s = this._data.core.selected.slice(), m = this._model.data;
1786 this._data.core.selected = this._data.core.selected.concat(rslt.add);
1800 this.trigger('changed', { 'action' : 'model', 'selected' : this._data.core.selected });
1814 if(!this._data.core.working || force_processing) {
1815 this._data.core.working = true;
1820 if(this._data.core.worker_queue.length) {
1821 this._append_json_data.apply(this, this._data.core.worker_queue.shift());
1824 this._data.core.working = false;
1828 if(this._data.core.worker_queue.length) {
1829 this._append_json_data.apply(this, this._data.core.worker_queue.shift());
1832 this._data.core.working = false;
1840 this._data.core.worker_queue.push([dom, data, cb, true]);
1845 if(this._data.core.worker_queue.length) {
1846 this._append_json_data.apply(this, this._data.core.worker_queue.shift());
1849 this._data.core.working = false;
1965 this._data.core.selected.push(data.id);
2063 this._data.core.selected.push(tmp.id);
2173 this._data.core.selected.push(tmp.id);
2185 f = document.createElement('UL'), tmp, i, j, fe = this._data.core.focused;
2204 this._data.core.focused = null;
2799 …this._data.core.last_clicked = this._data.core.last_clicked && this._data.core.last_clicked.id !==…
2800 …if(this._data.core.last_clicked && !this._data.core.last_clicked.state.selected) { this._data.core…
2801 …this._data.core.last_clicked && this._data.core.selected.length) { this._data.core.last_clicked = …
2803 …iftKey) || (e.shiftKey && (!this._data.core.last_clicked || !this.get_parent(obj) || this.get_pare…
2810 this._data.core.last_clicked = this.get_node(obj);
2816 l = this._data.core.last_clicked.id,
2817 p = this.get_node(this._data.core.last_clicked.parent).children,
2835 … 'action' : 'select_node', 'node' : this.get_node(obj), 'selected' : this._data.core.selected, 'ev…
2924 this._data.core.selected.push(obj.id);
2939 … this.trigger('select_node', { 'node' : obj, 'selected' : this._data.core.selected, 'event' : e });
2950 …this.trigger('changed', { 'action' : 'select_node', 'node' : obj, 'selected' : this._data.core.sel…
2977 this._data.core.selected = $.vakata.array_remove_item(this._data.core.selected, obj.id);
2989 …this.trigger('deselect_node', { 'node' : obj, 'selected' : this._data.core.selected, 'event' : e }…
2991 …this.trigger('changed', { 'action' : 'deselect_node', 'node' : obj, 'selected' : this._data.core.s…
3002 var tmp = this._data.core.selected.concat([]), i, j;
3003 this._data.core.selected = this._model.data['#'].children_d.concat();
3004 for(i = 0, j = this._data.core.selected.length; i < j; i++) {
3005 if(this._model.data[this._data.core.selected[i]]) {
3006 this._model.data[this._data.core.selected[i]].state.selected = true;
3016 this.trigger('select_all', { 'selected' : this._data.core.selected });
3018 …this.trigger('changed', { 'action' : 'select_all', 'selected' : this._data.core.selected, 'old_sel…
3028 var tmp = this._data.core.selected.concat([]), i, j;
3029 for(i = 0, j = this._data.core.selected.length; i < j; i++) {
3030 if(this._model.data[this._data.core.selected[i]]) {
3031 this._model.data[this._data.core.selected[i]].state.selected = false;
3034 this._data.core.selected = [];
3043 this.trigger('deselect_all', { 'selected' : this._data.core.selected, 'node' : tmp });
3045 …this.trigger('changed', { 'action' : 'deselect_all', 'selected' : this._data.core.selected, 'old_s…
3068 …return full ? $.map(this._data.core.selected, $.proxy(function (i) { return this.get_node(i); }, t…
3232 this._data.core.state = forget_state === true ? {} : this.get_state();
3233 …orget_state && $.isFunction(forget_state)) { this._data.core.state = forget_state.call(this, this.
3256 this.set_state($.extend(true, {}, this._data.core.state), function () {
3265 this._data.core.state = null;
3277 var opened = [], to_load = [], s = this._data.core.selected.concat([]);
3283 this.select_node(this._data.core.selected);
3318 i = $.inArray(obj.id, this._data.core.selected);
3319 if(i !== -1) { this._data.core.selected[i] = id; }
3494 this.settings.core.error.call(this, this._data.core.last_error);
3552 this.settings.core.error.call(this, this._data.core.last_error);
3589 this.settings.core.error.call(this, this._data.core.last_error);
3606 pos = $.inArray(tmp[k], this._data.core.selected);
3608 this._data.core.selected = $.vakata.array_remove(this._data.core.selected, pos);
3621 …this.trigger('changed', { 'action' : 'delete_node', 'node' : obj, 'selected' : this._data.core.sel…
3647 …this._data.core.last_error = { 'error' : 'check', 'plugin' : 'core', 'id' : 'core_01', 'reason' : … class
3654 …this._data.core.last_error = { 'error' : 'check', 'plugin' : 'core', 'id' : 'core_02', 'reason' : … class
3659 …this._data.core.last_error = { 'error' : 'check', 'plugin' : 'core', 'id' : 'core_03', 'reason' : … class
3670 return this._data.core.last_error;
3755 this.settings.core.error.call(this, this._data.core.last_error);
3919 this.settings.core.error.call(this, this._data.core.last_error);
3981 if(!obj) { obj = this._data.core.selected.concat(); }
4008 if(!obj) { obj = this._data.core.selected.concat(); }
4096 …this._data.core.last_error = { 'error' : 'check', 'plugin' : 'core', 'id' : 'core_07', 'reason' : … class
4097 this.settings.core.error.call(this, this._data.core.last_error);
4106 rtl = this._data.core.rtl;
4127 "height" : (this._data.core.li_height) + "px",
4128 "lineHeight" : (this._data.core.li_height) + "px",
4200 if(this._data.core.themes.name) {
4201 this.element.removeClass('jstree-' + this._data.core.themes.name);
4203 this._data.core.themes.name = theme_name;
4219 get_theme : function () { return this._data.core.themes.name; },
4226 if(this._data.core.themes.variant) {
4227 …this.element.removeClass('jstree-' + this._data.core.themes.name + '-' + this._data.core.themes.va…
4229 this._data.core.themes.variant = variant_name;
4231 …this.element.addClass('jstree-' + this._data.core.themes.name + '-' + this._data.core.themes.varia…
4239 get_theme_variant : function () { return this._data.core.themes.variant; },
4244 …show_stripes : function () { this._data.core.themes.stripes = true; this.get_container_ul().addCla…
4249 …hide_stripes : function () { this._data.core.themes.stripes = false; this.get_container_ul().remov…
4254 …toggle_stripes : function () { if(this._data.core.themes.stripes) { this.hide_stripes(); } else { …
4259 …show_dots : function () { this._data.core.themes.dots = true; this.get_container_ul().removeClass(…
4264 …hide_dots : function () { this._data.core.themes.dots = false; this.get_container_ul().addClass("j…
4269 …toggle_dots : function () { if(this._data.core.themes.dots) { this.hide_dots(); } else { this.show…
4274 …show_icons : function () { this._data.core.themes.icons = true; this.get_container_ul().removeClas…
4279 …hide_icons : function () { this._data.core.themes.icons = false; this.get_container_ul().addClass(…
4284 …toggle_icons : function () { if(this._data.core.themes.icons) { this.hide_icons(); } else { this.s…
4477 this._data.checkbox.uto = false;
4478 this._data.checkbox.selected = [];
4484 this._data.checkbox.visible = this.settings.checkbox.visible;
4493 this[ this._data.checkbox.visible ? 'show_checkboxes' : 'hide_checkboxes' ]();
4499 if(this._data.checkbox.uto) { clearTimeout(this._data.checkbox.uto); }
4500 this._data.checkbox.uto = setTimeout($.proxy(this._undetermined, this), 50);
4513 this._data.checkbox.selected.push(dpc[i]);
4533 …this._data[ t ? 'core' : 'checkbox' ].selected = this._data[ t ? 'core' : 'checkbox' ].selected.co…
4541 …this._data[ t ? 'core' : 'checkbox' ].selected = this._data[ t ? 'core' : 'checkbox' ].selected.co…
4564 this._data[ t ? 'core' : 'checkbox' ].selected.push(p.id);
4578 …this._data[ t ? 'core' : 'checkbox' ].selected = $.vakata.array_unique(this._data[ t ? 'core' : 'c…
4589 …this._data[ t ? 'core' : 'checkbox' ].selected = $.vakata.array_unique(this._data[ t ? 'core' : 'c…
4608 this._data[ t ? 'core' : 'checkbox' ].selected.push(par.id);
4671 for(i = 0, j = this._data[ t ? 'core' : 'checkbox' ].selected.length; i < j; i++) {
4674 …(s.indexOf('down') === -1 || $.inArray(this._data[ t ? 'core' : 'checkbox' ].selected[i], obj.chil…
4675 …(s.indexOf('up') === -1 || $.inArray(this._data[ t ? 'core' : 'checkbox' ].selected[i], obj.parent…
4677 tmp.push(this._data[ t ? 'core' : 'checkbox' ].selected[i]);
4680 this._data[ t ? 'core' : 'checkbox' ].selected = $.vakata.array_unique(tmp);
4702 this._data[ t ? 'core' : 'checkbox' ].selected.push(p.id);
4730 this._data[ t ? 'core' : 'checkbox' ].selected.push(p.id);
4751 this._data[ t ? 'core' : 'checkbox' ].selected.push(p.id);
4761 …this._data[ t ? 'core' : 'checkbox' ].selected = $.vakata.array_remove_item(this._data[ t ? 'core'…
4783 … m = this._model.data, t = this.settings.checkbox.tie_selection, s = this._data[ t ? 'core' : 'che…
4857 if(this._data.checkbox.uto) { clearTimeout(this._data.checkbox.uto); }
4858 this._data.checkbox.uto = setTimeout($.proxy(this._undetermined, this), 50);
4867 …this.show_checkboxes = function () { this._data.core.themes.checkboxes = true; this.get_container_…
4873 …this.hide_checkboxes = function () { this._data.core.themes.checkboxes = false; this.get_container…
4879 …this.toggle_checkboxes = function () { if(this._data.core.themes.checkboxes) { this.hide_checkboxe…
4888 …heckbox.cascade, i, j, t = this.settings.checkbox.tie_selection, d = this._data[ t ? 'core' : 'che…
4946 this._data.checkbox.selected.push(obj.id);
4959 …this.trigger('check_node', { 'node' : obj, 'selected' : this._data.checkbox.selected, 'event' : e …
4986 this._data.checkbox.selected = $.vakata.array_remove_item(this._data.checkbox.selected, obj.id);
4999 …this.trigger('uncheck_node', { 'node' : obj, 'selected' : this._data.checkbox.selected, 'event' : …
5010 var tmp = this._data.checkbox.selected.concat([]), i, j;
5011 this._data.checkbox.selected = this._model.data['#'].children_d.concat();
5012 for(i = 0, j = this._data.checkbox.selected.length; i < j; i++) {
5013 if(this._model.data[this._data.checkbox.selected[i]]) {
5014 this._model.data[this._data.checkbox.selected[i]].state.checked = true;
5025 this.trigger('check_all', { 'selected' : this._data.checkbox.selected });
5035 var tmp = this._data.checkbox.selected.concat([]), i, j;
5036 for(i = 0, j = this._data.checkbox.selected.length; i < j; i++) {
5037 if(this._model.data[this._data.checkbox.selected[i]]) {
5038 this._model.data[this._data.checkbox.selected[i]].state.checked = false;
5041 this._data.checkbox.selected = [];
5051 this.trigger('uncheck_all', { 'selected' : this._data.checkbox.selected, 'node' : tmp });
5075 …return full ? $.map(this._data.checkbox.selected, $.proxy(function (i) { return this.get_node(i); …
5132 …this._data.checkbox.selected = $.vakata.array_remove_item(this._data.checkbox.selected, tmp.childr…
5142 state.checkbox = this._data.checkbox.selected.slice();
5333 …if(this._data.contextmenu.visible && (!last_ts || (+new Date()) - last_ts > 250)) { // work around…
5380 …$(document).on("context_hide.vakata.jstree", $.proxy(function () { this._data.contextmenu.visible …
5383 if(this._data.contextmenu.visible) {
5410 y = o.top + this._data.core.li_height;
5444 this._data.contextmenu.visible = true;
5911 if(ins && ins._data && ins._data.dnd) {
6339 this._data.massload = {};
6343 if(is_callback && !$.isEmptyObject(this._data.massload)) {
6351 this._data.massload[i] = data[i];
6371 this._data.massload[i] = data[i];
6384 var d = this._data.massload[obj.id];
6388 delete this._data.massload[obj.id];
6460 this._data.search.str = "";
6461 this._data.search.dom = $();
6462 this._data.search.res = [];
6463 this._data.search.opn = [];
6464 this._data.search.som = false;
6468 var i, j, f, r = this._data.search.res, s = [], o = $();
6470 …this._data.search.dom = $(this.element[0].querySelectorAll('#' + $.map(r, function (v) { return "0…
6471 this._data.search.dom.children(".jstree-anchor").addClass('jstree-search');
6472 if(this._data.search.som && this._data.search.res.length) {
6480 o = o.add(this._data.search.dom);
6487 if(this._data.search.som) {
6496 if(this._data.search.som && data.nodes.length) {
6525 if(this._data.search.res.length && !append) {
6549 …this._data.core.last_error = { 'error' : 'ajax', 'plugin' : 'search', 'id' : 'search_01', 'reason'… class
6550 this.settings.core.error.call(this, this._data.core.last_error);
6561 this._data.search.str = str;
6562 this._data.search.dom = $();
6563 this._data.search.res = [];
6564 this._data.search.opn = [];
6565 this._data.search.som = show_only_matches;
6580 …this._data.search.dom = $(this.element[0].querySelectorAll('#' + $.map(r, function (v) { return "0…
6581 this._data.search.res = r;
6584 …this._data.search.dom = this._data.search.dom.add($(this.element[0].querySelectorAll('#' + $.map(r…
6585 this._data.search.res = $.vakata.array_unique(this._data.search.res.concat(r));
6587 this._data.search.dom.children(".jstree-anchor").addClass('jstree-search');
6598 …this.trigger('search', { nodes : this._data.search.dom, str : str, res : this._data.search.res, sh…
6607 this._data.search.dom.children(".jstree-anchor").removeClass("jstree-search");
6609 this.close_node(this._data.search.opn, 0);
6620 …his.trigger('clear_search', { 'nodes' : this._data.search.dom, str : this._data.search.str, res : …
6621 this._data.search.str = "";
6622 this._data.search.res = [];
6623 this._data.search.opn = [];
6624 this._data.search.dom = $();
6640 t._data.search.opn.push(v[0].id);
7079 …this._data.core.last_error = { 'error' : 'check', 'plugin' : 'types', 'id' : 'types_01', 'reason' … class
7083 …this._data.core.last_error = { 'error' : 'check', 'plugin' : 'types', 'id' : 'types_02', 'reason' … class
7096 …this._data.core.last_error = { 'error' : 'check', 'plugin' : 'types', 'id' : 'types_03', 'reason' … class
7215 …this._data.core.last_error = { 'error' : 'check', 'plugin' : 'unique', 'id' : 'unique_01', 'reason… class
7221 …this._data.core.last_error = { 'error' : 'check', 'plugin' : 'unique', 'id' : 'unique_04', 'reason… class
7227 …this._data.core.last_error = { 'error' : 'check', 'plugin' : 'unique', 'id' : 'unique_02', 'reason… class
7233 …this._data.core.last_error = { 'error' : 'check', 'plugin' : 'unique', 'id' : 'unique_03', 'reason… class
7362 …if($.inArray(obj.id, this._data.core.selected) !== -1) { tmp.className += ' jstree-wholerow-clicke…
7363 …if(this._data.core.focused && this._data.core.focused === obj.id) { tmp.className += ' jstree-whol…