Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 21 21:15
    greenkeeper[bot] commented #5237
  • Sep 21 21:15

    greenkeeper[bot] on @feathersjs

    chore(package): update @feather… (compare)

  • Sep 21 21:12
    greenkeeper[bot] commented #5236
  • Sep 21 21:12

    greenkeeper[bot] on @feathersjs

    chore(package): update @feather… (compare)

  • Sep 21 03:58

    greenkeeper[bot] on @octokit

    (compare)

  • Sep 21 03:57

    greenkeeper[bot] on @octokit

    chore(package): update @octokit… (compare)

  • Sep 20 21:04
    m-mujica commented #5303
  • Sep 20 20:23
    m-mujica opened #5303
  • Sep 20 20:23

    m-mujica on upgrade-deps

    Update can-type and can-stache-… (compare)

  • Sep 20 20:05
    m-mujica edited #5302
  • Sep 20 20:03
    m-mujica synchronize #5302
  • Sep 20 20:03

    m-mujica on upgrade

    Upgrade routing guide to Can 6 Fix incorrect highlight Use svg images (instead of .png) (compare)

  • Sep 20 19:32
    m-mujica opened #5302
  • Sep 20 19:29

    m-mujica on upgrade

    Upgrade routing guide to Can 6 Fix incorrect highlight (compare)

  • Sep 20 17:42

    m-mujica on upgrade

    WIP: Upgrade (compare)

  • Sep 20 17:06
    do-adams starred canjs/canjs
  • Sep 20 13:34

    chasenlehara on 5119-testing-guide

    Update the Testing guide for Ca… (compare)

  • Sep 20 13:21
    cherifGsoul commented #5295
  • Sep 20 13:18
    cherifGsoul synchronize #5295
  • Sep 20 13:18

    cherifGsoul on update-theme-new-buttons

    Theme pre-release 2 (compare)

Kevin Phillips
@phillipskevin
there are some differences with the order of how the define properties get set up
if that’s something you need, feel free to open an issue
Frank Lemanschik
@frank-dspeed
@phillipskevin do you have a idea what happens to such?
Kevin Phillips
@phillipskevin
not sure what you mean
Frank Lemanschik
@frank-dspeed

canMap.extend(
/ @prototype */
{
define: {
/

     * @property {office/models/session} office/components/navigation.loginSession loginSession
     * @parent office/components/navigation.properties
     *
     * A placeholder session with a nested [office/models/user user] property that
     * is used for two-way binding the login form's username and password.
     */
    loginSession: {
        value: function(){
            return new Session({user: new User()});
        }
    }
    /**
     * @property {office/app} office/components/navigation.app app
     * @parent office/components/navigation.properties
     *
     * The [office/app] used to add or destroy the session.
     */
     /**
      * @property {Promise<office/models/session>} office/components/navigation.sessionPromise sessionPromise
      * @parent office/components/navigation.properties
      *
      * The promise that resolves when the user is logged in.
      */
},
/**
 * @function createSession
 *
 * Creates the session on the server and when successful updates [office/components/navigation.app]
 * with the session. Sets [office/components/navigation.sessionPromise].
 * @param {Event} [ev] Optional DOM event that will be prevented if passed.
 */
createSession: function(ev){
    if(ev) {
        ev.preventDefault();
    }
    var self = this;
    var sessionPromise = this.attr("loginSession").save().then(function(session){

        self.attr("loginSession", new Session({user: new User()}));
        self.attr("app").attr("session", session);

    });
    this.attr("sessionPromise", sessionPromise);
},

```

you see we have a map and then define:{}
and functions under the define
Gregg Roemhildt
@roemhildtg
Okay, good to know. I think its useful. I'll put in an issue.
Kevin Phillips
@phillipskevin
@frank-dspeed yeah… that’s how can-map and can-map-define work
you can have a CanMap without the define plugin
Frank Lemanschik
@frank-dspeed
i mean
var DefineMap = require("can-define/map/map");
in this case it should only set the define: {} part
not the functions after it right?
whats the component for the functions in can map after the define
Kevin Phillips
@phillipskevin
you can put functions on a DefineMap
those functions can be called from other properties on the map or from the template
inside the define: {}, the define plugin will take the set, get, etc properties and create a compute on the Map instance
outside the define, those things will just be set on the Map instance directly
Frank Lemanschik
@frank-dspeed
ah
so we have magic that exports it from define to parent map
good to know
Kevin Phillips
@phillipskevin
yeah
that’s what can-map-define does
Frank Lemanschik
@frank-dspeed
it defines a map :)
sounds logical
i am so lost in the nodejs parts of the project at present that i lost totally the view for the web component evolution :)
Justin Meyer
@justinbmeyer
Frank Lemanschik
@frank-dspeed
sharing a new user story :D
[4:32:53 PM] ashok thomas: we were planning to base all of our dev to laravel and vue,after hearing from you, i think,we should think now on donejs
[4:33:07 PM] Frank Lemanschik: yes
Kevin Phillips
@phillipskevin
nice!
Gregg Roemhildt
@roemhildtg
Vue.js also does look pretty neat. Just out of curiosity, does anyone know how canjs compares with vue?
Frank Lemanschik
@frank-dspeed
i know it i am also creator of dietjs
we have some vue examples
canjs is better in many ways soon
at present vue offers some stuff that is in work at present here but i am sure it get done fast
Gerard Finnerty
@halcyonandon
@justinbmeyer we're using canjs components for everything we build... but we also build shared resource libraries for others that may not be using canJS. I've been reading that a lot of projects like Ember and Angular are working towards inter-op of web component libs, which reminds me a lot of the convergence of module definitions that has been happening towards ES2015/next module standards... has the core team discussed inter-op of can components with other frameworks at all?
Gerard Finnerty
@halcyonandon
@roemhildtg The deal breaker for me with Vue is forced template syntax, like Angular 1.x... custom directives and all that.... non-string based... <a v-bind:href="url"></a><p v-if="seen">Now you see me</p> also, full js expressions means less SoC imo... {{ message.split('').reverse().join('') }} I don't want to see that kind of stuff done in templates
Frank Lemanschik
@frank-dspeed
yes
@halcyonandon all are havy investigating here into that too :) on the steal and steal-tools side
canJS as you know already plays well with all others
Gregg Roemhildt
@roemhildtg
@halcyonandon that makes sense. Yes, that's what I didn't like about learning angular, and what made canjs a lot easier to use. The soc, and also the binding syntaxes. Once you get the binding patterns, it's easy where vue and ng have special tags for logic you have to memorize
Julian
@pYr0x
@justinbmeyer is canjs/can-devtools a working chrome extension?
Frank Lemanschik
@frank-dspeed
not realy often :D
Guido Smeets
@gsmeets
is there a 2.3/3.0 browser compatibility matrix available?
Or is it a really short list? :)
I reckon IE8 will be dead with 3.0, but what about IE9/10?
Frank Lemanschik
@frank-dspeed
Guido v3.canjs.com all info you need
it looks like all is compatible in general
only some code adjustments some times minor once