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

Function extend$i

codebase/sources/dhtmlxscheduler.js:3731–3753  ·  view source on GitHub ↗
(scheduler2)

Source from the content-addressed store, hash-verified

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

Callers 1

factoryMethodFunction · 0.70

Calls 1

createEventScopeFunction · 0.70

Tested by

no test coverage detected