[10:44] so say you want all textareas with class=“codemirror” to have codemirror applied to them, but not to load codemirror at all on pages without said textareas
[10:45] you call enhanceEach(‘textarea.codemirror’, [‘path/to/codemirror’ (requirejs dependency list)], callback)
[10:45] and if there are any elements matching the selector, the libraries are loaded, and callback(element, *dependencies) is called for each element
[10:46] it’s a pattern I use everywhere in Taproot and Shrewdness, and got tired of writing it out explicitly :) barnabywalters in IWC:IRC
-
In reply to a post on waterpigs.co.uk
-
In reply to a post on waterpigs.co.uk
-
In reply to a post on waterpigs.co.uk
-
In reply to a post on waterpigs.co.uk
-
In reply to a post on waterpigs.co.ukOoo nice, off to a great start! Here's a few things you might want to try :)
Replied at Jun 11, 2014 -
In reply to a post on waterpigs.co.uk
-
In reply to a post on waterpigs.co.ukfavorited this.
-
In reply to a post on waterpigs.co.uk
-
In reply to a post on waterpigs.co.uk@BarnabyWalters Been bouldering in Öskjuhlíð a couple of times. Its nice. Hvalfjörður has good bolted routes.
-
In reply to a post on waterpigs.co.uk@hvitur_hrafn Öskjuhlið, as it’s only a bikeride away — not been climbing in Hvalfjörður before,… waterpigs.co.uk/notes/4WXB2F/
-
In reply to a post on waterpigs.co.uk@BarnabyWalters Where are those, in Öskjuhlíð or maybe Hvalfjörður?
-
In reply to a post on waterpigs.co.uk@BarnabyWalters and/or where he lived was once norway, or we was swedish born, but lived in norway. Lots of possibilities, but caught my eye
-
In reply to a post on waterpigs.co.uk
Man, I really should get Kerbal Space Program because it’s one of those games that I want to have played, if that makes sense? The problem is I already have a pretty hefty backlog of games as it is which makes it hard to justify the purchase.
-
In reply to a post on waterpigs.co.uk
-
In reply to a post on waterpigs.co.uk
This game looks fascinating... how accurate are the physics involved in terms of success? Do you have to hit escape velocity/learn orbital mechanics to rendezvous with the space station etc?
-
In reply to a post on waterpigs.co.uk
-
In reply to a post on waterpigs.co.uk
-
In reply to a post on waterpigs.co.uk
-
In reply to a post on waterpigs.co.uk
-
In reply to a post on waterpigs.co.uk@BarnabyWalters if there’s no name for it yet, I’d take yours. Sounds appropriate to me :)
JavaScript Digest
Reddit Enhancement
Bret Comnes
Brennan Novak
Sumendi
Evan Prodromou
Smári McCarthy
Hrafn Þorvaldsson
Barnaby Walters
Joschi Kuphal 吉
Tantek Çelik
Julien Genestoux
Bret Comnes
Erik
Bastian Allgeier