-
Notifications
You must be signed in to change notification settings - Fork 13.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example using TroopJS #120
Conversation
Thanks for the contribution :D Can you explain what TroopJS is? Couldn't find any info on it. |
Just another front-end framework. Aims to package current javascript technologies and 'bind' them together with minimal effort for the developer.
On top of this we've added a pubsub system, templating, weaving (connect widget to dom) and auto wiring. The TroopJS moto goes something like
The name is taken from what you'd call a group of monkeys (troop) as originally it was targeted at an 'embedded' environment using spidermonkey. We're using todomvc as the onboarding project for new developers, so there's a step-by-step guide (in progress) that explains how we created this app. |
simplified the file structure quite a bit and provided an example using troopjs-bundle instead of individual modules. |
Not really sure what else I can do to get this merged. Perhaps use the new template from #126 when its ready? |
Sorry for the delay. I've been on holiday. It looks pretty good :) There are some things I'd appreciate if you could fix:
I'll review it more thoroughly when the above changes are implemented :D Some comments to your excellent TroopJS Todo app intro:
I agree, changed in master.
This is specified in the new App Specification.
Also in the App Specification. Do let us know if you have any more feedback or if something is unclear :D |
@mikaelkaron Any updates? |
hacking along on 0.0.2 ;) I'll make an updated todomvc as soon as I have that (using the new UI) |
@mikaelkaron Thanks for the update! Do you think 0.0.2 might be ready sometime over the next few weeks? Im trying to establish whether you'll have time to bring the TroopJS app in line with specs for our next major version (probably aiming to go out in a month). If you do, I'll mark the target release for this as 1.0 otherwise we can do it in 1.1 (probably 1..a few months after). We appreciate your contributions! |
I'll try to land 0.0.2 ASAP, so please target this for 1.0 |
Marked accordingly. Let us know if you need any help :) |
@mikaelkaron Any updates? The 1.0 release is close, and we need to get those apps that are going into the release merged. |
I've been a bit slow over here. I'll take a stab at it today! |
landed a bunch of stuff in my troopjs-todos repo (what I eventually 'copy' to todomvc). basically implemented all the requirements except routing. will take a stab at that tomorrow. |
a bit of reset and a commit later. done. |
|
||
.filter-active .completed, | ||
.filter-completed .active { | ||
display: none; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CSS shouldn't be tied to the filters functionality.
Instead you should just hide/show the items directly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just trying to save myself some coding for when you have a filter applied and add/remove items. I'll take a look at if it can be done without CSS.
Thanks for finishing this. I have to say, I like to good use of $.Deferred ;) I've done a review of your app and have some comments in addition to the inline ones:
Uncaught Error: NOT_FOUND_ERR: DOM Exception 8
|
I'll get on the CSS update tomorrow. Do you want me to make a topic branch for all of this as per:
or are you ok with this pull request as it is (besides the outstanding CSS fix)? I was also unable to reproduce your error, do you still have it? |
No not necessary, but keep it in mind for your next pull request. It makes your life a lot easier if you've ever need to submit multiple pull requests to the same project.
Yes, I still have that issue, Chrome 19 Mac Lion: Steps: Double-click the item, remove all the text, hit enter
Other than that, it looks good :) |
Ok, I'm able to reproduce in chrome. I'll take a look at that now. |
that requirejs 2.0 thing sort of threw a wrench into my schedule (had to do some updates to the bundle to support 2.0). I have a version of the bundle that is 2.0 compatible, but as there are still quite a few bugs with 2.0 and rjs I'd like to stick to 1.0 if possible. |
Didn't mean to make a lot of extra work for you. Noticed it while surfing and it looked like and easy upgrade. But sure, stick with 1.0 if that's more stable ;) Just make sure to also minify the require.js file. |
1.0 should be okay for now :) I know James Burke mentioned there's still a few weeks of work left to wrap up 2.0 so we should be okay to upgrade at a later point as needed. |
@addyosmani Actually 2.0 has been released. |
@sindresorhus Oh wow! That I did not know. He must have had a few late nights to wrap it all up so quickly :) |
use `.trim()` instead of regexp remove unused RE
Remover included RequireJS (load from assets).
There. Fixed what needed to be fixed to be RequireJS 2.0 'compatible'. |
Cool, just need that error fixed and we're golden ;) |
Fixed. Funny problem there actually, it's jQuery that triggers a simulated |
Right, when I think about it I think we had another app with the same problem, turned out to actually be a Chrome bug. Landed. Thanks for this addition to our collection ;) |
Well, I was only able to reproduce in chrome, and the underlying error is that jQuery will try to remove a node that does not exist anymore. I guess it's possible that this is the same problem (were you removing an element that had input descendants?). |
Can't remember, but here is the Chromium bug: http://code.google.com/p/chromium/issues/detail?id=104397 And here's the jQuery bug: http://bugs.jquery.com/ticket/11663 |
looks like the same to me. nice to know ppl are aware about it. |
But unfortunately not a lot of activity on the Chrome ticket... |
A TodoMVC example using TroopJS