This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<project name="sample-require-js" default="" basedir="."> | |
<!-- properties --> | |
<property name="r.js" value="_build/rjs/r.js" /> | |
<property name="closure.jar" value="_build/closure/compiler.jar" /> | |
<property name="rhino.jar" value="_build/rhino/js.jar" /> | |
<property name="js.build" value="_build/js.build.js" /> | |
<property name="css.build" value="_build/css.build.js" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// DESIRED (pending bikeshedding): | |
// Create using special factory function. Will automatically create `ko.observable`s, `ko.observableArray`s, and | |
// `ko.computed`s for you, but hide them behind getters/setters. | |
var viewModel = es5ViewModel({ | |
firstName: "Luke", | |
lastName: "Skywalker", | |
fullName: function () { | |
return this.fullName + this.lastName; | |
}, |
NewerOlder