Make Anchor.prototype.context n-ary
This commit is contained in:
parent
e67d018079
commit
879e2425b9
|
@ -33,7 +33,7 @@ function spawnChatApp() {
|
||||||
|
|
||||||
assert toBroker(url, present(this.nym, this.status));
|
assert toBroker(url, present(this.nym, this.status));
|
||||||
during fromBroker(url, present($who, $status)) {
|
during fromBroker(url, present($who, $status)) {
|
||||||
assert ui.context(who)
|
assert ui.context(who, status)
|
||||||
.html('#nymlist',
|
.html('#nymlist',
|
||||||
Mustache.render($('#nym_template').html(), { who: who, status: status }));
|
Mustache.render($('#nym_template').html(), { who: who, status: status }));
|
||||||
}
|
}
|
||||||
|
|
|
@ -337,8 +337,9 @@ function Anchor(explicitFragmentId) {
|
||||||
this.eventPattern = uiEvent(this.fragmentId, __, __, __);
|
this.eventPattern = uiEvent(this.fragmentId, __, __, __);
|
||||||
}
|
}
|
||||||
|
|
||||||
Anchor.prototype.context = function (contextId) {
|
Anchor.prototype.context = function (/* ... */) {
|
||||||
return new Anchor(this.fragmentId + '_' + escapeDataAttributeName(contextId));
|
var extn = Array.prototype.slice.call(arguments).map(escapeDataAttributeName).join('__');
|
||||||
|
return new Anchor(this.fragmentId + '__' + extn);
|
||||||
};
|
};
|
||||||
|
|
||||||
Anchor.prototype.html = function (selector, html) {
|
Anchor.prototype.html = function (selector, html) {
|
||||||
|
|
Loading…
Reference in New Issue