Fork me on GitHub
#clojurescript
<
2016-08-06
>
ghaskins02:08:51

Hi All, what is the interop for a js function denoted with “#”, like Long#add() (https://github.com/dcodeIO/long.js#longaddaddend)

ghaskins02:08:30

im familiar with invoking functions with a form like (.add long foo), but I am not sure what to do with the hash

ghaskins02:08:41

(sorry, not a node/js guy)

ghaskins02:08:29

I tried to google what it meant in pure javascript but was having trouble

porglezomp02:08:10

I’ve seen that used before in Ruby contexts to describe an instance method, it looks like that’s how it’s being used here, although I haven’t seen it used in JS like that before. I think you’d just do (.high some-Long-value)

flyboarder03:08:39

Anyone know the google closure equivalent to jQuery slide up/down? Not looking to use jQuery.

levitanong04:08:09

@flyboarder: is that for hoplon? 😛

flyboarder04:08:39

@levitanong: maybe 😁 I have all the attributes converted except for :slide-toggle

levitanong04:08:19

@flyboarder: Have you seen this? Based on the wording though, it doesn’t seem like the slide here works the same as in jQuery. https://github.com/google/closure-library/blob/master/closure/goog/demos/effects.html

levitanong04:08:26

resize might be what you’re looking for though

flyboarder04:08:39

@levitanong: I think the problem is that goog.fx slides all use coordinates not directions, so im going to have to figure out how to get the coordinates and calculate the bottom edge position from the current position??

levitanong04:08:44

@flyboarder: As I read further, it does seem that slide isn’t what you want. I think the right way to go is resize. With it, you can choose the direction of resizing, and then all you’d have to do is calculate the final dimensions of the element.

flyboarder04:08:12

@levitanong: I’m still not quite following you, could you provide an example of what you are thinking?

flyboarder04:08:30

perhaps swipe is what I am looking for?

levitanong04:08:06

@flyboarder: oh! actually that seems to be exactly what you’re looking for!

levitanong04:08:45

If you were to use resize, you would have had to render the element on dom while invisible, store the final dimensions, then resize it from a height of 0 to its final height.

flyboarder05:08:29

@levitanong: thanks! finished 😉

levitanong05:08:19

@flyboarder: hurrah! happy to help 😀

tianshu12:08:06

which approach for writing native app with clojurescript is best?

novakboskov13:08:46

How to get plain value from transit tagged value?

tiensonqin13:08:48

@doglooksgood: I think re-frame + reagent, rum, or om-next all are ok

akiva13:08:38

@novakboskov, you should be able to access it normally.

akiva13:08:50

Oh wait, I read that as transient.

pesterhazy13:08:39

@doglooksgood: agree with @tiensonqin, react-native should work with all cljs react wrappers

pesterhazy13:08:43

you may get more responses in #C0E1SN0NM btw

tianshu14:08:25

@pesterhazy: I think the work arround for react-native in cljs is a little bit complex?

rorydouglas15:08:42

is anyone aware of an issue with transitive cljsjs dependencies interfering with regular lein tasks?

rorydouglas15:08:07

i have a project where i’m using Garden via lein-garden and have a couple of cljsjs deps

rorydouglas15:08:41

some of those have cljsjs deps of their own (e.g. cljsjs/react-burger-menu depends on cljsjs/snapsvg)

rorydouglas15:08:57

the dependencies get pulled down fine & lein deps shows the dep tree OK

rorydouglas15:08:26

but lein garden breaks trying to find the transitive cljsjs deps in Maven central (they’re legitimately not there, they’re only in clojars)

rorydouglas15:08:00

cljsjs libs with no transitive deps don’t break anything

rorydouglas15:08:57

writing it out like this make me think it’s a lein-garden (or Garden) issue, just wondered if anyone else had experienced this?

rorydouglas16:08:39

or a problem with the cljsjs artifacts POM’s I guess

rorydouglas16:08:00

aah that’s it

rorydouglas16:08:04

thinking out loud FTW

rorydouglas16:08:15

add clojars repo to cljsjs generated POMs fixes it

matan16:08:18

is this a good place for discussing hoplon? http://hoplon.io seems to link here...

matan16:08:03

In case so, Hoplon docs have this in them:

How will templating and HTML processing work in HLisp?

Solution: None, yet.
So no templating in hoplon?

shaun-mahood16:08:52

@matan: the #hoplon channel is pretty active and helpful, probably worth trying there too