diff --git a/src/modules/lay.js b/src/modules/lay.js index aff58385..54d41c7e 100644 --- a/src/modules/lay.js +++ b/src/modules/lay.js @@ -206,6 +206,8 @@ lay.options = function(elem, opts){ opts = typeof opts === 'object' ? opts : {attr: opts}; + if(elem === document) return {}; + var othis = lay(elem); var attrName = opts.attr || 'lay-options'; var attrValue = othis.attr(attrName);