As soon as I put Prototype in my project it starts to cause me an error where there was none before.
It returns me the error mentioned in the title of this line:
if (this.map[type]) {
for (var i in this.map[type]) {
this.map[type][i](data); //aqui
}
}
Apparently there's nothing wrong, or is there?