Mageto2 error Uncaught Error: You cannot apply bindings multiple times to the same element

I am getting following erro

knockout.js:3277 Uncaught Error: You cannot apply bindings multiple times to the same element.

Below is the code

var instance = new viewModel(initialData);
                        if(typeof(document.getElementById("menueditor")) !='underfined' && document.getElementById("menueditor")[0]){
                            ko.cleanNode(document.getElementById("menueditor")[0]);
                            ko.cleanNode(document.getElementById("menueditor"));
                            //ko.utils.domData.clear(document.getElementById("menueditor"));
                        }
                        var koNode = document.getElementById('menueditor');
                        var hasDataBinding = !!ko.dataFor(koNode);
                        console.log('has data binding', hasDataBinding);
                        if (!hasDataBinding) { ko.applyBindings(instance, koNode);}