These are chat archives for canjs/canjs

8th
Jul 2016
qantourisc
@qantourisc
Jul 08 2016 05:46
@Bajix can.List.replace basically run: can.List.concat( can.makeArray( YourInput ) ) , now looking at the code for makeArray and I will get back to you.
That is just a jquery function
qantourisc @qantourisc looks for the next culpit
qantourisc
@qantourisc
Jul 08 2016 06:06
(new can.List).constructor converts
qantourisc
@qantourisc
Jul 08 2016 06:17
@Bajix list.__type does the converttion
Or at least one convertion, but you might wish to start with that
now why (other then for cheer speed) you wish to store plain objects, I don't know
also note: other code might depends on this being can data
as such a ton of things can fail if it's not can types
Maybe it's a better idea to create a new type from scratch ?
Justin Meyer
@justinbmeyer
Jul 08 2016 14:19
DoneJS Contributors Meeting @ 10:30 CST (approx in 1 hr): https://plus.google.com/u/1/b/100740111466273743340/events/cn28iqqfh5i3vlov5a037j00i2c
Thomas Sieverding
@Bajix
Jul 08 2016 22:37
Any quick fixes for this?
Potentially unhandled rejection [6] file:/Users/Bajix/Sites/@elated/mobile/node_modules/jquery/dist/jquery.js:906
  var div = document.createElement("div");
                    ^
TypeError: Cannot read property 'createElement' of undefined
    at assert (file:/Users/Bajix/Sites/@elated/mobile/node_modules/jquery/dist/jquery.js:906:20)
    at file:/Users/Bajix/Sites/@elated/mobile/node_modules/jquery/dist/jquery.js:2628:24
    at file:/Users/Bajix/Sites/@elated/mobile/node_modules/jquery/dist/jquery.js:2679:3
    at file:/Users/Bajix/Sites/@elated/mobile/node_modules/jquery/dist/jquery.js:34:3
    at file:/Users/Bajix/Sites/@elated/mobile/node_modules/jquery/dist/jquery.js:38:2
    at Object.exports.runInThisContext (vm.js:54:17)
    at doEval (/Users/Bajix/Sites/@elated/mobile/node_modules/steal-systemjs/dist/system.src.js:2059:10)
    at __eval (/Users/Bajix/Sites/@elated/mobile/node_modules/steal-systemjs/dist/system.src.js:1976:7)
    at Loader.exec [as __exec] (/Users/Bajix/Sites/@elated/mobile/node_modules/steal-systemjs/dist/system.src.js:339:5)
    at load.metadata.execute (/Users/Bajix/Sites/@elated/mobile/node_modules/steal-systemjs/dist/system.src.js:1105:16)
Potentially unhandled rejection [3] evalmachine.<anonymous>:1
I was trying something like this to no avail:
"envs": {
  "server-development": {
    "meta": {
      "jquery": {
        "deps": [
          "can/util/vdom/vdom"
        ]
      }
    }
  },
  "server-production": {
    "meta": {
      "jquery": {
        "deps": [
          "can/util/vdom/vdom"
        ]
      }
    }
  },