Questions tagged [ecma]

ECMA is a standards organisation

214 questions
0
votes
1 answer

Apache NiFi: read json file in ECMAScript

I am new to NiFi. My question is how can we read json file in ECMAScript while using excute script process. I want to load json file with mapping json for schema mapping.
Siraj ul Haq
  • 845
  • 9
  • 25
0
votes
1 answer

ECMAScript Spec - Conforming to API - Confused

I'm trying to understand every bit of the ECMAScript spec and I ran across this line in Section 2 (pretty much the first page) that follows: A conforming implementation of ECMAScript that provides an application programming interface that supports…
qarthandso
  • 2,100
  • 2
  • 24
  • 40
0
votes
2 answers

How to organize vueify within laravel?

I want to use Vueify in my Laravel project. I have different Vuejs components using Vueify (*.vue files). My question is about how to best organize the required files and also optimize JS code sent to browsers. Basically I would like to use such…
patriziotomato
  • 591
  • 1
  • 11
  • 25
0
votes
1 answer

Method for safe getting property in angularjs/lodash

I have following code: return _.map(_.compact([ $scope.status() ? false : "status", ($scope.evidenceLevel || {}).id ? false : "evidence_level", ($scope.association || {}).id ? false : "association", …
ruslan5t
  • 257
  • 3
  • 16
0
votes
1 answer

JavaScript and object initialization

I'am decided to "go deeper" with javascript, and before ECMA6 to try to master ECMA5 skills, and now i am stuck with object creation and initialization, what version is better, more practical, better to read and so on. Which one to stuck with and…
Itsmeromka
  • 3,621
  • 9
  • 46
  • 79
0
votes
0 answers

Ideal way for iterating over a array and run a delayed function

I've got a question, how can I handle the following situation without the needing of array.length different variables? for (var i = 0; i <= arrayOfStrings.length; i++) { if (i % 3 == 0 && i != 0) { var name = i - 3; …
Niklas
  • 45
  • 2
  • 7
0
votes
1 answer

`player.animate( [ {transform: "rotate(10)"`?

I'm trying to use web animation/JS (but not CSS!) to transform SVG. I can't get the transform: rotate(10) to work--not sure why. In the example playerT (scale) and playerT3 (strokeWidth) are fine, but playerT2 doesn't seem to do anything--why?
ajo
  • 1,045
  • 4
  • 15
  • 30
0
votes
1 answer

SharePoint Ecma Get List Properties

I am trying to read a List Properties using SharePoint ECMA but could not success. Anyone can help - here is the code - tried with method get_fieldValues and get_item and both have returned "undefined". var key = "vti_level"; function…
0
votes
1 answer

How to get the text-area.width in the preset shape from openxml?

Does anybody know how to get the width of the text area width and position in powerpoint? I get the information of Cx, Cy, Off.X|Y,but the infos are just for the shape,not for the text area in the shape. And when i strenth the width and the…
Yao
  • 61
  • 6
0
votes
2 answers

How to force Visual Studio (C#) to compile sources according to ECMA-334 standard?

How to force Visual Studio (C#) to compile sources according to ECMA-334 standard? For example the below code is not valid in ECMA-334 standard: foreach (var item in custQuery) { Console.WriteLine("Name={0}, Phone={1}", item.Name,…
Amir Saniyan
  • 13,014
  • 20
  • 92
  • 137
-1
votes
0 answers

Is it safe to assume that all DOM HTMLElement event properties begin with "on" (e.g. onload, onclick, onkeypress)?

I'm looping through the properties of an HTMLElement and doing some things with the element's event names. Do HTMLElement event properties always begin with "on"? My approach is working fine at the moment, but I would like to know if it is…
user3163495
  • 2,425
  • 2
  • 26
  • 43
-1
votes
1 answer

How to flatten an hierarchical array of objects + sum values from childs in JS

This one gives me headache, I don't know how to achieve restructuring this array of object: const obj = [ { id: 10, name: "foo", // parent value: 20 }, { id: 11, name: "foo - 1", // child value: 2 }, { id: 12, …
-1
votes
2 answers

Passing Arguments to function in javascript

I have a function(case) as below, let fn = (() => { let ab = {}; let register = () => { console.log("hello" + ab[x]) }; return (x,y) => { ab[x] = y; return register(); }; })(); this function is working only when I call as…
-1
votes
1 answer

this.handleChange.bind(this) and render use

I got this code from react bootstrap website https://react-bootstrap.github.io/components/forms/ I will like to know the use of the following in the code this.handleChange = this.handleChange.bind(this) The use of making the value in this.state =…
Paul
  • 263
  • 4
  • 21
-1
votes
1 answer

Call exported function in exported function

I need call exported function in another one. Here is my first fucntion which is called: import initialization from './initialization'; export default (a, b) => { console.log('called 1.') initialization(); }; and here is my another exported…
Denis Stephanov
  • 4,563
  • 24
  • 78
  • 174
1 2 3
14
15