I have the following script template:
<script id="template" type="text/x-jsrender">
<div>
<label>Name</label>
<input data-link="FirstName" type="text" />
</div>
<button>Search</button>
</script>
I fire jsView with the following command:
$.templates("#template").link("#result", model);
Where model is js object
function myModel() {
this.FirstName = "";
}
Unfortunately, link
command casues error:
TypeError: elem.dispatchEvent is not a function
What could be wrong?
noConflict
mode – Dhaval Marthak