jquery - Dojo javascript event and query selection issue -


i have menu item.

enter image description here

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.

enter image description here

do have dojo/nodelist-traverse module loaded?


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -