mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Add comment and fix indentation
This commit is contained in:
@@ -11,11 +11,12 @@ Blaze.With = function (data, contentFunc) {
|
||||
|
||||
view.onCreated(function () {
|
||||
if (typeof data === 'function') {
|
||||
// `data` is a reactive function
|
||||
view.autorun(function () {
|
||||
view.dataVar.set(data());
|
||||
}, view.parentView);
|
||||
} else {
|
||||
view.dataVar.set(data);
|
||||
view.dataVar.set(data);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user