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