Dmitry Kandalov
12/23/2017, 4:56 PMdefine(['exports', 'kotlin', ....
.
However, to load it in npm I need to require 'amdefine' first, as described here http://requirejs.org/docs/node.html#nodeModules there should be a line like this at the top of the generated file if (typeof define !== 'function') { var define = require('amdefine')(module); }
Is there any way to do it in kotlinjs?fuad
12/23/2017, 6:47 PMlittlelightcz
12/26/2017, 2:23 PMxap4o
12/26/2017, 8:03 PMlukas.fink
12/27/2017, 1:48 PMkotlinx.html
in javascript to get the value from an input
field. Is there a more elegant solution than doing it this way?trevjones
12/28/2017, 7:05 PMbenleggiero
12/29/2017, 1:12 AM>>
operator in Kotlin/JS?hiperbou
12/29/2017, 1:46 PMjossiwolf
12/30/2017, 12:48 AMgbaldeck
01/02/2018, 7:38 PMgbaldeck
01/03/2018, 1:12 AMspierce7
01/03/2018, 1:25 PMjw
01/05/2018, 7:20 AMjw
01/05/2018, 7:26 AM{ param1: arg1, param2: arg2, .. }
yaakov
01/06/2018, 10:29 PMlewik
01/07/2018, 11:48 AM$('.myClass').innterText = "new text"
for xml string?jw
01/07/2018, 10:36 PMbirgersp
01/09/2018, 2:36 PMspierce7
01/09/2018, 8:02 PMbirgersp
01/10/2018, 2:04 PMlouiscad
01/10/2018, 10:15 PM::YourConstructor
?jrtapsell
01/10/2018, 10:26 PMmattinger
01/10/2018, 11:23 PMspierce7
01/11/2018, 6:18 PMimport React from 'react';
import {AppRegistry, StyleSheet, Text, View} from 'react-native';
How should I be giving the kotlin code access to the npm libraries without manually editing the js file kotlin generates?spierce7
01/12/2018, 12:51 AMw
01/14/2018, 4:21 PMcdietze
01/14/2018, 7:32 PMalbertgao
01/15/2018, 1:38 AMsrc
, there are 8 modules: 7 of them depends on 1 module.
Previously I just import the lib
in the libs folder, and run the Build
command from menu, everything works, I get the .js
files.
Now I want to use gradle
to do the building, is there a way that I can build the seven modules one by one with dependency on that 1 module? Within one build.gradle
?ilya.gorbunov
01/15/2018, 2:14 AMTristan Caron
01/15/2018, 2:07 PMval el = document.querySelector("#my-element")!! as HTMLInputElement
val observer = MutationObserver { _, _ ->
println("changes")
}
observer.observe(el, MutationObserverInit(attributes = true))
But I'm always getting
Uncaught TypeError: Failed to execute 'observe' on 'MutationObserver': The provided value cannot be converted to a sequence.
Any ideas?