Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 11:45
    alex-zhang starred canjs/canjs
  • Nov 21 19:51
    greenkeeper[bot] commented #5392
  • Nov 21 19:51

    greenkeeper[bot] on core-js-3.4.2

    chore(package): update core-js … (compare)

  • Nov 20 19:48

    phillipskevin on master

    Update dist for release (compare)

  • Nov 20 19:48

    phillipskevin on v6.2.7

    Update dist for release 6.2.7 (compare)

  • Nov 20 19:30

    phillipskevin on six-two-seven

    (compare)

  • Nov 20 19:30
    phillipskevin closed #5431
  • Nov 20 19:19
    phillipskevin synchronize #5431
  • Nov 20 19:19

    phillipskevin on six-two-seven

    updating dependencies (compare)

  • Nov 20 18:53
    cherifGsoul review_requested #5432
  • Nov 20 18:52
    cherifGsoul opened #5432
  • Nov 20 18:49

    cherifGsoul on update-api-page

    Update API page (compare)

  • Nov 20 17:17
    phillipskevin opened #5431
  • Nov 20 17:17

    phillipskevin on six-two-seven

    updating dependencies (compare)

  • Nov 20 17:11
    cherifGsoul synchronize #5430
  • Nov 20 17:11

    cherifGsoul on update-infrastructure-page

    Update can-queues part (compare)

  • Nov 20 17:08
    cherifGsoul opened #5430
  • Nov 20 17:06

    phillipskevin on can-attribute-observable-2.0.2

    (compare)

  • Nov 20 17:06

    phillipskevin on master

    fix(package): update can-attrib… Merge pull request #5426 from c… (compare)

Kevin Phillips
@phillipskevin
let it go
no need to argue about that issue anymore
I don’t want to read about it anymore :smile:
Frank Lemanschik
@frank-dspeed
ya lost a lot of money too
Christopher Oliphant
@RALifeCoach
good because I am tired of typing about it
Frank Lemanschik
@frank-dspeed
i should work again
but learnd much today
Christopher Oliphant
@RALifeCoach
as did I - thanks to all
Kevin Phillips
@phillipskevin
@RALifeCoach you might also want to minify your build
that option isn’t in our script
Christopher Oliphant
@RALifeCoach
I don’t need to - the CMS takes all JS files, merges them into one file and minifies them
Kevin Phillips
@phillipskevin
ok
like magic
except when you don’t want to do that :smile:
Christopher Oliphant
@RALifeCoach
in the QA version of the system the files are not minified and that helps with debugging
it’s what we are used to working with
tomorrow I will build a couple of components using the global can and see how it goes
Frank Lemanschik
@frank-dspeed
remember to load jquery befor it
remember to use on dom ready events
then your on a good way
Frank Lemanschik
@frank-dspeed
Question who created this and has access to it?
http://www.jsdelivr.com/projects/canjs
@All
Gregg Roemhildt
@roemhildtg
How can I prevent a form from submitting in a component when the enter key is pressed in canjs 3? Currently, I have
($submit)="noop" in the template and noop(){ return false; } in the viewmodel but the form is still being submitted.
Gregg Roemhildt
@roemhildtg
It looks like the problems a little more complex than that. I can't seem to reproduce in a simple jsbin.
Nico R.
@nriesco
@roemhildtg if you have “access” to the event you might use preventDefault (https://developer.mozilla.org/en/docs/Web/API/Event/preventDefault)
Gregg Roemhildt
@roemhildtg
I think what's going on is an error is thrown somewhere along the line.
Then the return false isn't being executed and the page is redirected
Nico R.
@nriesco
well you can try with a console log before the return line and see if it is executed
Gregg Roemhildt
@roemhildtg
Just stepping through it... it looks like the return is being executed, but somewhere in a parent component its throwing an error. Its looking like something I'm doing wrong.
Gregg Roemhildt
@roemhildtg
@nriesco you're right, preventDefault does fix the issue. :+1:
Nico R.
@nriesco
Great!
Eben
@eben-roux
mope.io
Frank Lemanschik
@frank-dspeed
Eben
is this your project?
Gregg Roemhildt
@roemhildtg
Good day, quick question on canjs 3. (I know I have a lot of questions) In the previous version, can.Map.define objects could have a set function which would be called when the property is initialized (like with a default value) or set. But does this still happen in version 3? http://jsbin.com/kepixenonu/edit?html,js,console,output
Frank Lemanschik
@frank-dspeed
maybe you should watch the fresh new stylish guids and page for it? :D
go on the left side to infrastructure ecosystem and all that
and you will have a much better understanding and overview about the options and whats used
if you have any questions that this don't solves plz tell it here so some one can write something about that
Kevin Phillips
@phillipskevin
@roemhildtg can-map-define is the same as what you’re talking about from 2.3
Frank Lemanschik
@frank-dspeed
@phillipskevin but the name changed a bit var DefineMap = require("can-define/map/map");
Kevin Phillips
@phillipskevin
no
can-map-define is the same
can-define/map/map is a slightly different thing
Frank Lemanschik
@frank-dspeed
ah now we are on the same point :)
Gregg Roemhildt
@roemhildtg
Oh, I see.
Kevin Phillips
@phillipskevin
can-map/can-map-define has attr() and works the same as the Map and define plugin in 2.3
Frank Lemanschik
@frank-dspeed
DifineMap nativ should get depricated or not?