Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var deco = function(target){
var resource = Metadata.getOrCreateOwn(Metadata.resource, HtmlBehaviorResource, target);
resource.hasDynamicOptions = true;
};
return function (target) {
var resource = Metadata.getOrCreateOwn(Metadata.resource, HtmlBehaviorResource, target);
resource.attributeName = name;
};
}
var deco = function(target){
var resource = Metadata.getOrCreateOwn(Metadata.resource, HtmlBehaviorResource, target);
resource.targetShadowDOM = true;
};
var deco = function (target, key, descriptor) {
var actualTarget = key ? target.constructor : target, resource = Metadata.getOrCreateOwn(Metadata.resource, HtmlBehaviorResource, actualTarget), prop;
if (key) {
nameOrConfigOrTarget = nameOrConfigOrTarget || {};
nameOrConfigOrTarget.name = key;
}
prop = new BindableProperty(nameOrConfigOrTarget);
return prop.registerWith(actualTarget, resource, descriptor);
};
if (!nameOrConfigOrTarget) {
var deco = function(target, key, descriptor){
var actualTarget = key ? target.constructor : target, //is it on a property or a class?
resource = Metadata.getOrCreateOwn(Metadata.resource, HtmlBehaviorResource, actualTarget),
prop;
if(key){ //is it on a property or a class?
nameOrConfigOrTarget = nameOrConfigOrTarget || {};
nameOrConfigOrTarget.name = key;
}
prop = new BindableProperty(nameOrConfigOrTarget);
return prop.registerWith(actualTarget, resource, descriptor);
};
var deco = function(target){
var resource = Metadata.getOrCreateOwn(Metadata.resource, HtmlBehaviorResource, target);
resource.liftsContent = true;
};
return function(target){
var resource = Metadata.getOrCreateOwn(Metadata.resource, HtmlBehaviorResource, target);
resource.elementName = name;
}
}
return function (target) {
var resource = Metadata.getOrCreateOwn(Metadata.resource, HtmlBehaviorResource, target);
resource.elementName = name;
};
}
return function (target) {
var resource = Metadata.getOrCreateOwn(Metadata.resource, HtmlBehaviorResource, target);
resource.childExpression = new ChildObserver(property, changeHandler, selector);
};
}