James Thorpe
James Thorpe
Added an extra option to specify the maximum amount of time to wait before attempting a reconnect. Defaults to -1, to keep the current behaviour.
If a JavaScript comment contains the character string `def`, the comment highlighting is not applied. Multiline/block comments are unaffected, as are comments with no leading whitespace before `def`:  Live...
Given the following markup: ``` ``` and code: ``` var vm = { optionList: ko.observableArray(), value: ko.observable('') }; var opt = function (t, v) { this.text = ko.observable(t); this.value =...
Quite often when answering questions on Stack Overflow, it's useful to link to a specific area of the documentation. Most of the areas have anchors specific to them, eg: http://knockoutjs.com/documentation/click-binding.html#note-3-allowing-the-default-click-action...
Take a simple view: ``` ``` and viewmodel: ``` var viewmodel = new (function() { this.items = ko.observableArray(); })(); viewmodel.items.push('a'); viewmodel.items.push('b'); viewmodel.items.push('c'); ko.applyBindings(viewmodel); ``` If the binding was just `data-bind="click:...
In our application we have an area where users have the ability to enter JavaScript calculations to work with fields on the page. These fields are denoted by using square...
I've been building a very simple site, along the lines of: ``` /input/index.md /input/styles/site.less /theme/input/_layout.cshtml /theme/settings.yml ``` With the `settings.yml` containing a single setting, `Layout: /_layout.cshtml`. Up until today the...