#protip: type an element ID into Safari (possibly chrome+others) dev console and get a reference to that element
Need to use require.js to load a bunch of scripts compiled via assetic into a PHP file, annoyed by auto-append of .js, don’t want to set up irritating routing? Add a ? to the URL, require.js will add a .js to the query string, loading the file correctly.
cssquirrel Zepto is nice for browser extensions, where the browser will always be modern and capable
Cross-browser selection UI injection flow:
s.isCollapsed === false, return
e.textContentnow return useful values, and e’s coordinates can be used to inject UI into the page
To resolve: what element should e be? Or more accurately, what display property should it have?
inline-block (inline mucks up if selection is across block elements, block mucks up selections within text nodes)
Trying out kangoextensions.com for cross-browser extension building. I kinda feel this is something vendors should have figured out already :/
Writing a jQuery plugin. I have become my own worst enemy. But all the other in-place edit plugins are either horrible or try to be a REST syncing service too.
Jack Way netbeans is certainly the best IDE for php I’ve used so far. Angular.js looks nice, I’m trying to learn ember at the mo but the docs are rather inadequate.