importing javascript

22 views
Skip to first unread message

Todd Greenwood-Geer

unread,
Dec 1, 2012, 10:42:37 AM12/1/12
to leo-e...@googlegroups.com
I have a project that I've imported. Upon read @auto nodes (or whenever I open this project in leo), I get the following error dialog:

http://imgur.com/2oGfB

On import, I get quite a few errors in the leo log:

"""
})(window, document);
warning: function function does not end with a newline; one will be added
"""

So, what is the standard way of importing existing js libraries?

Todd Greenwood-Geer

unread,
Dec 1, 2012, 10:44:50 AM12/1/12
to leo-e...@googlegroups.com
Woops, there are more files that it complains about. And the dialog lists most files about 5 or 6 times...

http://imgur.com/yKloL

Edward K. Ream

unread,
May 1, 2013, 3:43:16 PM5/1/13
to leo-editor
Sorry for the delay in responding.  These are warnings, not errors.  Iirc, errors cause @ignore to be inserted into the imported outline, so you must choose to remove the @ignore in order to actually change the original file.  That seems to be the safe way.

Perhaps the js importer could be improved.  Please feel free to submit a bug report.

Edward
Reply all
Reply to author
Forward
0 new messages