Skip to content

Commit

Permalink
*Almost* fixed the monster bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie McElwain committed Dec 18, 2010
1 parent 91d2b3c commit 85eb57e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions latest.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var version='1.0';
(function(){
var jQuewy = function(){
var callback = null;
var lib_file = jQuewy.data();
var lib_file;
if (arguments.length > 0){
for (var i = 0; i < arguments.length; i++) {

Expand Down Expand Up @@ -91,14 +91,13 @@ var version='1.0';
jQuewy.extend(jQuewy, {
libFile: "http://jquewy.com/libs.php?dev=1",
data: false,
error_message: 'jQuewy cannot find the head tag. jQuewy needs a head tag to embed scripts. ';
addScript: function(src){
var s=document.createElement('script');
s.setAttribute('src',src);
try {
document.getElementsByTagName('head')[0].appendChild(s);
} catch (err) {
throw error_message + err;
throw 'jQuewy cannot find the head tag. jQuewy needs a head tag to embed scripts. ' + err;
}
},
addStylesheet: function(href){
Expand All @@ -109,7 +108,7 @@ var version='1.0';
try {
document.getElementsByTagName('head')[0].appendChild(l);
} catch (err) {
throw error_message + err;
throw 'jQuewy cannot find the head tag. jQuewy needs a head tag to embed scripts. ' + err;
}
},

Expand Down

0 comments on commit 85eb57e

Please sign in to comment.