Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'tagName' of null #9

Open
thomas-negrault opened this issue Mar 22, 2016 · 1 comment
Open

Cannot read property 'tagName' of null #9

thomas-negrault opened this issue Mar 22, 2016 · 1 comment

Comments

@thomas-negrault
Copy link

With a simple html demo file I have this error

gridifier.js:542 Uncaught TypeError: Cannot read property 'tagName' of null

In gridifier.js line 542, which is:
isNative: function(t) { return "undefined" != typeof t && "undefined" != typeof t.tagName && "undefined" != typeof t.nodeName && "undefined" != typeof t.ownerDocument && "undefined" != typeof t.removeAttribute ? !0 : !1; },

My page is a simple demo with code provided in the usage page, "Examples of setting collection type:"

@thomas-negrault
Copy link
Author

I think the line
var demoGrid = document.getElementById("#demo-grid");
should be replace by
var demoGrid = document.getElementById("demo-grid"); (no #)
in http://gridifier.io/essentials/usage

Edit: all the examples use getElementById("#id") instead of getElementById("id")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant