Open okliv opened 9 years ago
At some point, I tried that, and still errored. I think a combination of checking on length>0 and != undefined might be best. Will modify and push.
On Sat, Jun 20, 2015 at 5:09 AM, okliv notifications@github.com wrote:
therefore, it has to be compared with null not .length
You can view, comment on, or merge this pull request online at:
https://github.com/kjayma/surveyor_gui/pull/51 Commit Summary
.data("surveyor-gui-mount-point")
gives 'undefined' (null)File Changes
- M lib/assets/javascripts/surveyor_gui/surveyor_gui.js https://github.com/kjayma/surveyor_gui/pull/51/files#diff-0 (4)
Patch Links:
- https://github.com/kjayma/surveyor_gui/pull/51.patch
- https://github.com/kjayma/surveyor_gui/pull/51.diff
— Reply to this email directly or view it on GitHub https://github.com/kjayma/surveyor_gui/pull/51.
therefore, it has to be compared with
null
not.length