JavaScript How to get the scope when looping through an array in EXTJS

I have an array that I need to iterate through to get a value.

    someFunc: function(item) {
          var array = Ext.select(".item").elements;
          var elements;
          var itemId = item.id;
          Ext.each(array, function(ob){
            if (ob.id === itemId) {

              elements = ob.getElementsByTagName("input");
              Ext.each(elements, function(att){
                if (att.getAttribute("name") === "filter") {
                  console.log(att); 
                 this.callFunction();
    // here I want to call a function to do some stuff
    // but `"this"` here refers to input element
   //I should be able to call the function outside the someFunc, but I'm loosing scope
                    }

              });
            }


            });
        },

callFunctionL function() {

}

How to maintain the scope while iterating through arrays of array?

Answer:1

Like this : I hava a float number 25.56,I could translate it to the four hexadecimal number E1 7A CC 41 in js.And the translate way is called as union in C. But I don't know how to change the E1 7A ...

Like this : I hava a float number 25.56,I could translate it to the four hexadecimal number E1 7A CC 41 in js.And the translate way is called as union in C. But I don't know how to change the E1 7A ...

My state looks like this: state = { entities: { users: {}, articles: {}, }, pagination: { articlesByUser: { 1: { // userId = 1 isFetching: true, ids: [], ...

My state looks like this: state = { entities: { users: {}, articles: {}, }, pagination: { articlesByUser: { 1: { // userId = 1 isFetching: true, ids: [], ...

There is a string value in a p class like <p id="demo">10 hours : 25 minutes : 20 seconds</p>. Here I want to split that value like 10:25:20. This is my javascript function. function ...

There is a string value in a p class like <p id="demo">10 hours : 25 minutes : 20 seconds</p>. Here I want to split that value like 10:25:20. This is my javascript function. function ...

  1. getting html value in jquery
  2. html getting value from input box
  3. html getting value from select
  4. html getting value from input
  5. getting html textbox value in javascript
  6. getting html textbox value in c#
  7. getting button value html
  8. getting default value html

So I am using readline-sync to perform basic calculations. Multiplying and dividing work fine, but when I add both numbers it just concatenates them and when I subtract it returns NaN. Any idea what ...

So I am using readline-sync to perform basic calculations. Multiplying and dividing work fine, but when I add both numbers it just concatenates them and when I subtract it returns NaN. Any idea what ...

  1. addition subtraction working model
  2. addition subtraction working wall
  3. addition and subtraction worksheet
  4. addition and subtraction working wall ks2
  5. addition and subtraction working wall year 3
  6. addition and subtraction working wall year 2
  7. addition and subtraction work mat
  8. addition and subtraction working wall year 1
  9. addition and subtraction working wall year 4
  10. addition and subtraction maths working wall