Update Session->Style setScript to default to text/javascript. Update the entire codebase to take advantage of it.

This commit is contained in:
Colin Kuskie 2010-06-24 13:07:03 -07:00
parent 808f38b2a6
commit 3fbc109429
53 changed files with 254 additions and 352 deletions

View file

@ -44,18 +44,9 @@ sub process {
);
# and the JS
$style->setScript($extras."/wgwidget.js",{
type=>"text/javascript"
}
);
$style->setScript($extras."/yui/build/yahoo-dom-event/yahoo-dom-event.js",{
type=>"text/javascript"
}
);
$style->setScript($extras."/yui/build/container/container-min.js",{
type=>"text/javascript"
}
);
$style->setScript($extras."/wgwidget.js");
$style->setScript($extras."/yui/build/yahoo-dom-event/yahoo-dom-event.js");
$style->setScript($extras."/yui/build/container/container-min.js");
# construct the absolute URL and get the asset ID
my $asset = eval { WebGUI::Asset->newByUrl($session, $url); };