Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private applyBinding() {
if (!this.renderedElement) return;
this.updateKoCurrentPage();
ko.cleanNode(this.renderedElement);
if (!this.isFirstRender) {
this.updateCurrentPageQuestions();
}
this.isFirstRender = false;
ko.applyBindings(this, this.renderedElement);
}
private updateKoCurrentPage() {
BuildDetailView.init = function (instance, domobj) {
var view = new BuildDetailView(instance);
var domobj = domobj || $('#build-detail')[0];
ko.applyBindings(view, domobj);
return view;
};
GoldView.init = function (config, obj) {
var view = new GoldView(config);
var obj = obj || $('#payment-form')[0];
ko.applyBindings(view, obj);
return view;
}
DonateView.init = function (config, obj) {
var view = new DonateView(config),
obj = obj || $('#donate-payment')[0];
ko.applyBindings(view, obj);
return view;
}
PaymentView.init = function (config, obj) {
var view = new PaymentView(config),
obj = obj || $('#payment-form')[0];
ko.applyBindings(view, obj);
return view;
}