MCPcopy Create free account
hub / github.com/DHTMLX/scheduler / extend$i

Function extend$i

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

Source from the content-addressed store, hash-verified

3725 return domEvents();
3726}
3727function extend$i(scheduler2) {
3728 var domEvents = createEventScope();
3729 scheduler2.event = domEvents.attach;
3730 scheduler2.eventRemove = domEvents.detach;
3731 scheduler2._eventRemoveAll = domEvents.detachAll;
3732 scheduler2._createDomEventScope = domEvents.extend;
3733 scheduler2._trim = function(str) {
3734 var func = String.prototype.trim || function() {
3735 return this.replace(/^\s+|\s+$/g, "");
3736 };
3737 return func.apply(str);
3738 };
3739 scheduler2._isDate = function(obj) {
3740 if (obj && typeof obj == "object") {
3741 return !!(obj.getFullYear && obj.getMonth && obj.getDate);
3742 } else {
3743 return false;
3744 }
3745 };
3746 scheduler2._isObject = function(obj) {
3747 return obj && typeof obj == "object";
3748 };
3749}
3750function extend$h(scheduler2) {
3751 (function() {
3752 var htmlTags = new RegExp("<(?:.|\n)*?>", "gm");

Callers 1

factoryMethodFunction · 0.70

Calls 1

createEventScopeFunction · 0.70

Tested by

no test coverage detected