how should I write a star rating component
@justinbmeyer: feel free to post your ideas for wrting a star rating compontent like my http://jsfiddle.net/aVLUV/2/
View ArticleRe : how should I write a star rating component
I would only have 2 values, rating and stars. I'd have a "count" helper like:count: function(num, options){ var res = ""; num = num(); for(var i =0; i < num; i++){ res +=...
View Articlefunctional testing with funcunit
Hey guys I am new to funcunit.I have a test like S("#callinize_incoming_outgoing").visible(); var name = S("#callinize_incoming_outgoing").text(); equal(name, "OUTGOING CALL", "The title from the...
View ArticleI need another CanJS developer to work with me.
Hey, anyone who's been working with CanJS for a while, I'm totally overwhelmed with the sheer amount of frontend work that needs to be done on ggrc-core. Want a (better) job where you get to work with...
View ArticleCannot build with LESS 1.6.3 and twitter bootstrap 3 less files
Hello everyone.I want to use customized twitter bootstrap inside my project. So I downloaded the less files from their latest stable release (3.1.1) and tried to steal them into JSMVC.This didn't work...
View ArticleRecursive mustache
I would like to display a tree structure using recursive mustache template, http://jsfiddle.net/BigZolo/HPge3/3/ It seems falling to infinite loop. Does this concept wrong at all? var data = [{...
View ArticleRe : Recursive mustache
I just found out that when I takes out the recursive call, it works. I don't really understand, why. http://jsfiddle.net/BigZolo/9XgV8/<script id='recursive' type='text/mustache'>...
View ArticleRe : Using a compute as a property of a Map
Upgrading shouldn't be too difficult if you follow the steps from the document. It shouldn't have side effects on FuncUnit and the 3.3 DocumentJS should still work with the latest CanJS.
View ArticleRe : CanJS: DOM ready callback
There is no cross library implementation for document.ready in CanJS. But like thecountofzero said, if you are using jQuery you can just use can.ready().
View ArticleRe : How to use functions from another controler
There are several ways to do so but a little more context would be helpful to give the best suggestion. One way, if you have a reference to the element where the controller is initialized on you could...
View ArticleRe : functional testing with funcunit
You should be able to get what you need by moving the text retrieval and equal check to a function to the FuncUnit chain:S("#callinize_incoming_outgoing").visible();S(function() { var name =...
View ArticleRe : Recursive mustache
Because of Mustache scope resolution, even when you call the recursive template, it can still look up the Scope chain to previous contexts, and it will find children there because children is undefined...
View ArticleTest can component button click with using FuncUnit/Jasmine
HI,I'm using jasmine with FuncUnit to test a simple can component created based on the ToDos Component described on the canJS site. The test uses FuncUnit to click a button but the button's click...
View ArticleRe : FuncUnit .click() not hitting canJS component's click handler
Can you manually click it and it works?
View ArticleRe : FuncUnit .click() not hitting canJS component's click handler
Yes, the app itself works fine but when the test runs, you visually see the button click but the click handler block of code is not run.
View ArticleCan Route 2.0X hides #! from route, but I want to see it
Howdy,We have an existing Can 1.X app we converted to Can 2.0X. When we did, the routing worked but we lost the base part of the html including the #!. So before our app was at...
View ArticleRe : Can Route 2.0X hides #! from route, but I want to see it
in 2.0, there is no can.route.ready(true). There is only can.route.ready(). can.route.ready is documented here:http://canjs.com/docs/can.route.ready.htmlAlso, the default behavior will not lose the...
View ArticleRe : Recursive mustache
Thank you for your help, I forgot that it traverses the context.
View ArticleMustache {{>key}} doesn't accept partials in options
I'm trying to pass references to partials in options, like this: var ctrlCarouselAndTiles = can.Control.extend({ defaults: { viewMain: path.scripts + 'templates/carouselandtiles.mustache', viewTiles:...
View ArticleRe : Mustache {{>key}} doesn't accept partials in options
I'm not sure if the syntax will be the same for you (we use stealjs to load templates, and use the resulting functions directly), but we had to pass a second argument with the...
View Article