While using drupal 7, is it necessary for to wrap pure javascript code with jquery wrapper? (I understand that while working with jquery, I need to wrap my code inside beaviors.)
code
function openWin()
{
mycode
}
od should I wrap it like this
(function () {
function openWin()
{
mycode
}
})();
Or even use behaviors? Thank you.