New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example of specifying messenger element #3
Comments
That overspecified selector makes me a sad 🐼. |
But how will people ever understand how jquery works if I don't show it to them!?!?!?! |
Obvi: var out = $('<ul>');
$.each(new Array(a), function(){ out.append($('<li>')); })
$.each(new Array(b), function(){ out.append($('<li>')); })
alert(out.children().length); It's the only way. |
@zackbloom pls publish as jq plugin. |
@roderyc v0.1a maybe. Too efficient for a v1 release. |
FYI, the example still doesn't work when you click "Run" because there's no element called |
Yea, I just made them all runnable in the interest of consistency. Fleshing out those others is a good idea. |
The docs include an example with the line
but
ActionMessenger
is scoped within themessenger.js
file, and besides, the argument would have to beel: $('div#message-container')
.I believe the simplest fix is to change the line in the docs to
The text was updated successfully, but these errors were encountered: