https://codereview.appspot.com/18920045/diff/20001/app/subapps/browser/browser.js#newcode541
app/subapps/browser/browser.js:541: if (entityId.indexOf('bundle') !==
-1) {
Because everywhere else that uses 'deploy' is using it for only charms
and 'deployBundle' for bundles, I feel that this adds in a level of
complexity that isn't easy to follow. I don't see any benefit to this
change.
https://codereview.appspot.com/18920045/diff/20001/app/widgets/charm-search.js#newcode327
app/widgets/charm-search.js:327: this.hide();
You have probably looked into this already, but just in case...Does this
shut down any pending ac requests to avoid the result list from popping
up in the future? I'm just a little concerned that we are hiding the
list element but keeping the ac functional in the background since we
are short circuiting the real code.
Thanks for this feature! I'll be doing the QA now, just wanted to get my
comments landed so we can discuss.
https:/ /codereview. appspot. com/18920045/ diff/20001/ app/subapps/ browser/ browser. js browser/ browser. js (right):
File app/subapps/
https:/ /codereview. appspot. com/18920045/ diff/20001/ app/subapps/ browser/ browser. js#newcode541 browser/ browser. js:541: if (entityId. indexOf( 'bundle' ) !==
app/subapps/
-1) {
Because everywhere else that uses 'deploy' is using it for only charms
and 'deployBundle' for bundles, I feel that this adds in a level of
complexity that isn't easy to follow. I don't see any benefit to this
change.
https:/ /codereview. appspot. com/18920045/ diff/20001/ app/subapps/ browser/ browser. js#newcode1165 browser/ browser. js:1165: deployBundle: {},
app/subapps/
Thanks for adding these in!
https:/ /codereview. appspot. com/18920045/ diff/20001/ app/widgets/ charm-search. js charm-search. js (right):
File app/widgets/
https:/ /codereview. appspot. com/18920045/ diff/20001/ app/widgets/ charm-search. js#newcode273 charm-search. js:273: this.ac. _onItemClick = function(ev) {
app/widgets/
We should subclass the ac widget vs doing this monkeypatch. otherwise it
will be difficult to debug if the api changes down the road when we
upgrade YUI.
https:/ /codereview. appspot. com/18920045/ diff/20001/ app/widgets/ charm-search. js#newcode327 charm-search. js:327: this.hide();
app/widgets/
You have probably looked into this already, but just in case...Does this
shut down any pending ac requests to avoid the result list from popping
up in the future? I'm just a little concerned that we are hiding the
list element but keeping the ac functional in the background since we
are short circuiting the real code.
https:/ /codereview. appspot. com/18920045/ diff/20001/ app/widgets/ charm-search. js#newcode331 charm-search. js:331: var itemNode = ev.currentTarget;
app/widgets/
Instead of simply copying these methods a better approach would simply
be:
this._ac. prototype. _onItemClick( ev);
or if you subclass it (I think):
MyNewAutocomple te.superclass. constructor. _onItemClick( ev).bind( this);
This way any changes to the parent method won't require us to update
this part of the conditional.
https:/ /codereview. appspot. com/18920045/ diff/20001/ app/widgets/ charm-search. js#newcode373 charm-search. js:373: id = ev.result. raw.charm. id;
app/widgets/
Thanks for this fix!
https:/ /codereview. appspot. com/18920045/ diff/20001/ test/test_ browser_ app.js browser_ app.js (right):
File test/test_
https:/ /codereview. appspot. com/18920045/ diff/20001/ test/test_ browser_ app.js# newcode182 browser_ app.js: 182: fakeStore = new charmworld. APIv2({ });
test/test_
Y.juju.
Shouldn't we also have tests here(and below) for the v3 api?
https:/ /codereview. appspot. com/18920045/