Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 17:25
    matthewp edited #5384
  • 17:00

    matthewp on can-dom-mutate-2.0.7

    (compare)

  • 17:00

    matthewp on master

    fix(package): update can-dom-mu… Merge pull request #5386 from c… (compare)

  • 17:00
    matthewp closed #5386
  • 16:27
    greenkeeper[bot] labeled #5386
  • 16:27
    greenkeeper[bot] opened #5386
  • 16:27

    greenkeeper[bot] on can-dom-mutate-2.0.7

    fix(package): update can-dom-mu… (compare)

  • 16:25

    matthewp on can-dom-mutate-2.0.6

    (compare)

  • 16:24
    matthewp closed #5379
  • 16:24
    matthewp commented #5379
  • 15:26

    greenkeeper[bot] on can-type-1.1.2

    (compare)

  • 15:26

    matthewp on master

    fix(package): update can-type t… Merge pull request #5385 from c… (compare)

  • 15:26
    matthewp closed #5385
  • 14:11
    matthewp closed #5377
  • 14:11
    matthewp closed #5376
  • 14:11
    matthewp closed #5375
  • 14:07
    greenkeeper[bot] labeled #5385
  • 14:07
    greenkeeper[bot] opened #5385
  • 14:07

    greenkeeper[bot] on can-type-1.1.2

    fix(package): update can-type t… (compare)

  • Oct 16 20:07
    matthewp commented #5384
Justin Meyer
@justinbmeyer
btw, modifiers isn't used much anymore
do you need it?
Gerard Finnerty
@halcyonandon
Hi, we're having a discussion about what documentation generator to use... Trying to determine the advantages of using your documentjs over https://github.com/documentationjs
Gerard Finnerty
@halcyonandon
at v0.3.6, is there any major changes in the pipeline? also, I'm trying to see if there's any canjs-specific advantages
Alfredo Delgado
@Alfredo-Delgado
Are there any known problems with a SuperMap accepting parameters in the URL? e.g. url: '/{baseSiteId}/{countryCode}/products/global-navigation',
David Luecke
@daffl
Are you getting an error?
Mason Shin
@minsooshin
I am totally confused….
Screen Shot 2015-12-07 at 9.27.33 PM.png
this is preview of API call
it is string array
Screen Shot 2015-12-07 at 9.27.42 PM.png
but when I print out the response data with success method in findAll, it shows this...
The work around is using custom ajax method for findAll, but I would like to use default findAll method of can.Model
I have no idea why findAll generage mapped data from response data
Mason Shin
@minsooshin
Should the return data be array of object, not array of string?
I guess that is the issue why it has braek down the string to array.
Mihai Fantana
@fantanamihai
@justinbmeyer thank you for the feedback. well, for the moment I don't think so. for me, I know that this is a workaround.
The main idea for the issue is that, according to the documentation, it shouldn't have this behaviour. therefore it's a bug, isn't it?
I discovered this issue just fooling around with canjs and unconsciously include can/view/modifiers. Therefore it's an issue that is not obvious how it occurs and I think I'm not the only one facing it.
Also can you please indicate if there is another place but Control.setup to replace this.element?
Gerard Finnerty
@halcyonandon
@index should still work, even though it should be %index, correct?
http://jsfiddle.net/jhx3kh9f/ - getting an array index within an array doesn't seem to work with @index... it does work with %index, but still seems like a bug, no?
dylanrtt
@dylanrtt
@halcyonandon yes that's a bug. @index should only be deprecated
Justin Meyer
@justinbmeyer
@halcyonandon please create an issue?
Gerard Finnerty
@halcyonandon
@justinbmeyer sure thing, thanks
Julian
@pYr0x
@halcyonandon @justinbmeyer looks like this issue
#2067
Gerard Finnerty
@halcyonandon
@pYr0x I thought this might have been related to what you mentioned earlier in chat, but that issue was resolved in 2.3.3? We're using 2.3.5.
dylanrtt
@dylanrtt
@halcyonandon it looks like it wasn't fully resolved. The original comment was that @index was not working for map values (which is still the case), but the fix/tests only addressed %index. It should probably be reopened.
Gerard Finnerty
@halcyonandon
@justinbmeyer opened canjs/canjs#2127
Anthony Stansbridge
@Stansbridge
Hey... is there anyone who happens to know JMVC >really< well here?
JMVC 3.2.4 (haha) :)
Alexis Abril
@alexisabril
Hey @Stansbridge, it’s been a while and I’m currently travelling today, but I can assist
What’s your question?
Gerard Finnerty
@halcyonandon
@justinbmeyer we hit another troublesome bug in the new bindings... http://jsfiddle.net/sjxsazoh/3/
one way bindings work but the new and old way no longer work... this happens when you set a value in the init or inserted events
Gerard Finnerty
@halcyonandon
canjs/canjs#2134
Patrick Clancy
@patrickclancy
We’ve been using the %root property but wanted to know if this will continue to be supported?
Matthew Phillips
@matthewp
@patrickclancy sure, what makes you concerned about that?
Anthony Stansbridge
@Stansbridge
Hey @alexisabril We've got a very large JMVC 3.2.4 project. We're looking for a clean way to inject the view name being rendered inside each view as a HTML comment. We want a method that allows us to use this injection when developing but removes the code (and overhead) from our releases. We've tried a lot of things and we have some very experienced JMVC 3.2.4 devs on the project, we're struggling to get something working. We've tried patching against the internal 'compile' function of the ejs template code, checking if the navigator.userAgent header matches Rhino (terrible hack, we know :)) to distinguish between development/builds. The problem with this is when you compile an EJS template that does not render HTML but instead renders attributes for a form (for example)... basically it doesn't work where we use EJS as a string interpolation method. Another issue we had was the //!steal ignore comments do not execute against some specific internal files.
We were hoping that we could locate some absolute JMVC 3.2.4 geniuses to poke us in the right direction, this addition would be massively helpful :-)
The nice thing about monkey patching the ejs compile method is the build process compiles the templates as part of the build... thus performing all overhead inside Rhino... we don't mind what hacks go on then :-)
Anthony Stansbridge
@Stansbridge
To expand on why it doesn't work when using EJS to do string interpolation... the injection of a HTML comment would break things: <input <!-- oops a comment --> /> :-)
Obviously we could attempt to detect whether the template being compiled is HTML or something else... we've had a good laugh at crazy ideas, but haven't figured out anything viable.
Matthew Phillips
@matthewp
@dylanrtt @patrickclancy It's true that %root isn't needed for it's original purpose any more (asynchronous rendering for server-side) but I don't see any reason to remove it.
Jeroen Cornelissen
@jeroencornelissen
I have an each loop inside an each loop, is it possible to send the first object and second object to a helper function?
{{#each pupils}}    
    {{#each skills}}
        {{getCellContent pupil .}}
    {{/each}}
{{/each}}
Kevin Phillips
@phillipskevin
can you use .. ?
I know you can use it for single properties, not sure if it will give the entire object
Guido Smeets
@gsmeets
Yeah, you can do that.
But maybe a component makes more sense than a helper in this case
Jeroen Cornelissen
@jeroencornelissen
@gsmeets How would you fit in a component?
I had to make a quick fix and rewrite a legacy EJS file to stache. I’ll try the .. next time, for now I solved it with passing the skills to my helper and do the loop inside the helper {{getCellContent . skills}}
Kevin Phillips
@phillipskevin
you could just pass each pupil to a new component like <pupil-skills {(pupil)}=“.” />