doc = w.document
solanoah opened this issue · 3 comments
solanoah commented
w.document is always null
vmitsaras commented
@solanoah why is it null?
(function( w, $ ){
"use strict";
var doc = w.document;
console.log(doc);
// $(doc)...
})(this, jQuery);
solanoah commented
I was getting null when using offcanvas rather than trigger
solanoah commented
Why not just assign document to doc... it’s the same