Warning: Parameter 1 to wp_default_scripts() expected to be a reference, value given in /var/www/whoknew.dk/public_html/wp-includes/plugin.php on line 601

Warning: Parameter 1 to wp_default_styles() expected to be a reference, value given in /var/www/whoknew.dk/public_html/wp-includes/plugin.php on line 601
Backbone.js | Jacob T. Nielsen

Backbone.js declarative is-key events

You want to hide a dom element when some key triggers “keyup”. This is a fairly simple scenario where your code just might end up looking like this. So what is the problem? The problem is that closeDialog() has two very clear and very different responsibilities. 1. Determine what key triggered the “keyup” event 2. […]