vmitsaras/js-offcanvas

doc = w.document

solanoah opened this issue · 3 comments

w.document is always null

@solanoah why is it null?

(function( w, $ ){
  "use strict";

  var doc = w.document;
  console.log(doc);

// $(doc)...

})(this, jQuery);

I was getting null when using offcanvas rather than trigger

Why not just assign document to doc... it’s the same