0

When I call my function it fails when it hits the appendChild I have no idea why:

I create my function:

Auto.prototype.create = function(container){
   this.contain = container;

   var mask = document.createElement("div");
   mask.style.position = "absolute";

   this.contain.appendChild(mask);

When I call the create function, it fails when it hits the appenChild do I need to call that too? because I thought that calling the function was all I needed.

gurvinder372
  • 66,980
  • 10
  • 72
  • 94

0 Answers0