Error "Cannot set Property 'checked' of Undefined"

Asked

Viewed 344 times

1

In the store here is giving an error in the prototype:

Uncaught TypeError: Cannot set property 'checked' of undefined
at klass.<anonymous> (product.js:128)
at prototype.js:391
at prototype.js:825
at klass._each (prototype.js:1237)
at klass.each (prototype.js:824)
at klass.updateImages (product.js:125)
at klass.initialize (product.js:55)
at klass (prototype.js:101)
at (index):1205

And in the error code, this appears:

var $break = {};
var Enumerable = (function() {
      function each(iterator, context) {
        var index = 0;
        try {
          this._each(function(value) {
            iterator.call(context, value, index++);
          });
        } catch (e) {
          if (e != $break) throw e;
        }
        return this;
      }

inserir a descrição da imagem aqui

  • What is iterator and context?

  • This is the worst, this is from Magento. I didn’t make the 0. In this case, I think it’s from Prototype. It is already in the documentation itself: https://ajax.googleapis.com/ajax/libs/prototype/1.7.3.0/prototype.js

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.