These are chat archives for canjs/canjs

27th
Jul 2016
Guido Smeets
@gsmeets
Jul 27 2016 10:46
is there any way to suspend the stache parser?
I would like to create an examples project, with preferably inline samples
Jeremy Miller
@jjm340
Jul 27 2016 18:50
So I have this third party control I want to integrate called scooch. I installed it via NPM and attempt to do require('scooch') but it's a jquery plugin and just caused an error. Is there a standard way to do this?
Maybe this is a stealjs issue?
Kevin Phillips
@phillipskevin
Jul 27 2016 18:51
what is the error?
you might just need to make jquery a dependency
Jeremy Miller
@jjm340
Jul 27 2016 19:05
Uncaught Error evaluating http://dev.blah.io:8080/$.js
That's when I put require('scooch') into my js
The scooch library says that it supports AMD, but it doesn't seem to. And the docs say to include the scripts/css the traditional way with script tags etc
Kevin Phillips
@phillipskevin
Jul 27 2016 19:12
looks like it works if you make it a global
  "system": {
    "meta": {
      "scooch": {
        "deps": ["jquery"],
        "format": "global"
      }
    }
  }
their AMD build trys to require $
Jeremy Miller
@jjm340
Jul 27 2016 19:15
Yeah
Sorry for my ignore, where do I put that snippet?
Nvm, that's package.json
Kevin Phillips
@phillipskevin
Jul 27 2016 19:18
yeah
Jeremy Miller
@jjm340
Jul 27 2016 19:21
Haha, @phillipskevin, that seems to have worked, thanks a ton!!!
Kevin Phillips
@phillipskevin
Jul 27 2016 19:22
great, glad to hear it
Gregg Roemhildt
@roemhildtg
Jul 27 2016 20:18
I have this component that retrieves some list data with can-connect, and passes the data to a child component like this: <child {objects}="promise.value" />. This data can be modified in a form and then can-connect is used to save individual items. The list data is also rendered in a table. Once individual items are saved though, the stache template is somehow removing them from the table. I can reload the page to bring the items back, and they are saved correctly though. Any thoughts on possible causes?
Kevin Phillips
@phillipskevin
Jul 27 2016 21:10
maybe the _id is changing?
or whatever property you’re using for id