I'm working on a large, complicated, responsive-design JavaScript file for
the new illustration section I'm building for my website, and I'm all
bogged down. The code has totally gotten away from me -- it's just too
complex for me to model it in my mind any more or to troubleshoot. So I'm
experimenting with refactoring it in a very object-oriented way, replacing
many of the functions with methods and sub-methods, just for
organizational/clarity purposes. Conveniently, I already have a master
object called "layout" in my main JS file, so in the subordinate
illustration JS file I'm doing lots of things like this:
Replace function adjustMainLayout() { .... blah blah blah...
with layout.adjust = function() { blah blah blah...
...and so on.
Unfortunately, I'm immediately seeing what appears to be two disadvantages
to this approach in BBEdit.
First of all, the useful popdown list of function names is now gone: that
menu is almost completely empty now.
Secondly, the auto-fold triangles (for the functions) in the left gutter
are all gone, although I can still fold the methods with Command-Shift-B
(Balance and Fold).
Are these inherent shortcomings of using BBEdit with object-oriented
JavaScript, or is there something here that I really don't understand?
Please tell me it's the latter!
I'm using BBEdit 9.6.3, if that matters in this context.
Thanks much,
Lawrence
Lawrence San
Business Writing: Santhology.com
Cartoon Stories for Thoughtful People: Sanstudio.com
--
This is the BBEdit Talk public discussion group. If you have a
feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].