blob: d340575ed2b77c2bf040bb88066e99641be01f13 [file] [log] [blame]
// constructing a view from an object
// view information implicitly provided by fulfillment
var Q = require("q");
Q.ref({
"property": function () {
return "called";
}
})
.view()
.then(function (view) {
return Q(view.property())
.when(console.log);
})
.end()