JSFiddle - React, Tailwind, and code Playground
by jearles
HTML
<script src="http://cloud.github.com/downloads/SteveSanderson/knockout/knockout-2.1.0.js"></script>
<button data-bind="click: update">Open console and click me...</button>
JavaScript
var ViewModel = function() {
var self =this;
self.update = function() {
console.log(this);
updatea();
updateb.apply(this);
updatec();
};
var updatea = function() {
console.log(this);
};
var updateb = function() {
console.log(this);
};
var updatec = function() {
console.log(self);
};
};
ko.applyBindings(new ViewModel());