homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

grep for calls to Dojo and Mootools

WebmasterWorld Administrator ergophobe us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

Msg#: 4530200 posted 5:42 pm on Dec 21, 2012 (gmt 0)

I just started work on a pretty big site where the original developer is loading three libraries - jQuery, Dojo and Mootools - on every page.

I know that jQuery is getting used, but I have disabled Dojo and Mootools and can't see any problems. I can't find any calls to them either, but there are thousands of files (though not thousands of JS files, but it's possible that JS is inline in some files/templates) and I have looked around a bit and don't see any calls to those libraries.

Are there some fairly reliable markers for Dojo and Mootools I could grep for?

Like for jQuery I can grep for things like "(jQuery|\$\()" and hit most invocations with just a few siple strings like that.

Ideally, of course, the Dojo/Mootools searches would be distinct from jQuery (i.e. hit Mootools and Dojo,but not jQuery).

Since I don't know those librarires at all, I'm hoping someone can give some good ideas.


Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved