MCPcopy Create free account
hub / github.com/DHTMLX/scheduler / nav_node

Function nav_node

codebase/sources/dhtmlxscheduler.es.js:11259–11301  ·  view source on GitHub ↗
(scheduler2)

Source from the content-addressed store, hash-verified

11257 scheduler2.$keyboardNavigation.SchedulerNode.prototype.bindAll(scheduler2.$keyboardNavigation.SchedulerNode.prototype.keys);
11258}
11259function nav_node(scheduler2) {
11260 scheduler2.$keyboardNavigation.KeyNavNode = function() {
11261 };
11262 scheduler2.$keyboardNavigation.KeyNavNode.prototype = scheduler2._compose(scheduler2.$keyboardNavigation.EventHandler, { isValid: function() {
11263 return true;
11264 }, fallback: function() {
11265 return null;
11266 }, moveTo: function(element) {
11267 scheduler2.$keyboardNavigation.dispatcher.setActiveNode(element);
11268 }, compareTo: function(b) {
11269 if (!b)
11270 return false;
11271 for (var i in this) {
11272 if (!!this[i] != !!b[i])
11273 return false;
11274 var canStringifyThis = !!(this[i] && this[i].toString);
11275 var canStringifyThat = !!(b[i] && b[i].toString);
11276 if (canStringifyThat != canStringifyThis)
11277 return false;
11278 if (!(canStringifyThat && canStringifyThis)) {
11279 if (b[i] != this[i])
11280 return false;
11281 } else {
11282 if (b[i].toString() != this[i].toString())
11283 return false;
11284 }
11285 }
11286 return true;
11287 }, getNode: function() {
11288 }, focus: function() {
11289 var node = this.getNode();
11290 if (node) {
11291 node.setAttribute("tabindex", "-1");
11292 if (node.focus)
11293 node.focus();
11294 }
11295 }, blur: function() {
11296 var node = this.getNode();
11297 if (node) {
11298 node.setAttribute("tabindex", "-1");
11299 }
11300 } });
11301}
11302function header_cell(scheduler2) {
11303 scheduler2.$keyboardNavigation.HeaderCell = function(index) {
11304 this.index = index || 0;

Callers 1

key_navFunction · 0.70

Calls 2

focusMethod · 0.65
getNodeMethod · 0.45

Tested by

no test coverage detected