jquery - Dojo javascript event and query selection issue -
i have menu item.
and created event hanler handle parent.
on(query(".listmenu"), ".cbinfo:click", function (event) { if (event.type === 'click') { var tooltip = query(this).parent('li'); } });
when click icon now, gives error.
uncaught typeerror: object [object object] has no method 'parent'
i write console console.log(query(this)) returns:
[span.cbinfo, _wrap: function, slice: function, splice: function, indexof: function, lastindexof: function…]
but chrome watch expression resurns breakpoint this.
do have dojo/nodelist-traverse
module loaded?
Comments
Post a Comment