(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
// I found this somewhere on the intertubes, and optimized it | |
$.fn.insertAtCaret = function(myValue) { | |
return this.each(function() { | |
var me = this; | |
if (document.selection) { // IE | |
me.focus(); | |
sel = document.selection.createRange(); | |
sel.text = myValue; | |
me.focus(); | |
} else if (me.selectionStart || me.selectionStart == '0') { // Real browsers |