Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 12:56
    matthewp edited #5119
  • Sep 15 18:40
    lateshift starred canjs/canjs
  • Sep 13 21:53
    chasenlehara closed #5207
  • Sep 13 21:28

    chasenlehara on major

    Update dist for release (compare)

  • Sep 13 21:28

    chasenlehara on v6.0.0-pre.14

    Update dist for release 6.0.0-pre.14 (compare)

  • Sep 13 21:22

    chasenlehara on 5207-remove-can-define

    (compare)

  • Sep 13 21:22

    chasenlehara on major

    Remove can-define usage in CanJ… (compare)

  • Sep 13 21:22
    chasenlehara closed #5282
  • Sep 13 21:08

    m-mujica on playlist

    WIP: Upgrade playlist editor to… (compare)

  • Sep 13 20:19
    m-mujica commented #5119
  • Sep 13 17:36
    m-mujica edited #5119
  • Sep 13 17:15
    m-mujica edited #5119
  • Sep 13 16:34
    chasenlehara review_requested #5282
  • Sep 13 16:34
    chasenlehara review_requested #5282
  • Sep 13 16:33
    chasenlehara ready_for_review #5282
  • Sep 13 15:04

    greenkeeper[bot] on webpack-4.40.2

    (compare)

  • Sep 13 14:47

    greenkeeper[bot] on webpack-4.40.2

    chore(package): update webpack … (compare)

  • Sep 13 14:36
    chasenlehara synchronize #5282
  • Sep 13 14:36

    chasenlehara on 5207-remove-can-define

    Remove can-define usage in CanJ… (compare)

  • Sep 13 13:56
    chasenlehara synchronize #5282
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?
Kevin Phillips
@phillipskevin
DefineMap you don’t need to use attr()
Gregg Roemhildt
@roemhildtg
I like using DefineMap since there's no need for attr
Kevin Phillips
@phillipskevin
DefineMap is the new way
Gregg Roemhildt
@roemhildtg
But can you confirm whether or not the set behavior has changed?
Kevin Phillips
@phillipskevin
set works the same
it’s the value that is not working in your example I think
Frank Lemanschik
@frank-dspeed
the old works but should complain when using attr