hi.
does wire have a better way of doing what i'm attempting below?
what i would prefer is to not have to pass a reference to zepto to FooView.
rather, i'd like to (somehow) in the spec, send the node through a "pipeline" that consists of just the zepto function, and use the result of the pipeline as the sole argument to FooView's constructor. possible? is there a best practice with wire?
// spec
define({
zepto: {
module: 'Zepto'
},
fooView: {
create: {
module: 'FooView',
args: [{$ref: 'zepto'}, {$ref: 'first!.foo-view'}]
}
}
});
// FooView.js
define([], function () {
function FooView () {}
FooView.prototype = {
doSomethingThenShow: function ($, node) {
var $node;
// ...
// do something
// ...
$node = $(node);
$node.show();
}
}
return FooView;
});