You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function parentMethod() {
$(this).myWeaveMethod()
}
In actual fact, $(this) was wrong - this referred to window, because I called parentMethod using setTimeout.
The error message that was returned was "el.getAttribute not found", referring to a line of code in the Weave selector engine. A little tricky to debug
Perhaps if $() is passed something other than a DOM element, concrete should fail with a better error message "Weave method myWeaveMethod called on a non-DOM object 'window'".
The text was updated successfully, but these errors were encountered:
In my code I had a call like this:
In actual fact, $(this) was wrong - this referred to window, because I called parentMethod using setTimeout.
The error message that was returned was "el.getAttribute not found", referring to a line of code in the Weave selector engine. A little tricky to debug
Perhaps if $() is passed something other than a DOM element, concrete should fail with a better error message "Weave method myWeaveMethod called on a non-DOM object 'window'".
The text was updated successfully, but these errors were encountered: