Skip to content

Commit

Permalink
Make use of the new string constants.
Browse files Browse the repository at this point in the history
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
  • Loading branch information
jaubourg committed Feb 7, 2010
1 parent 0c4319c commit 43590e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/loaders/script.js
Expand Up @@ -19,7 +19,7 @@ var loadScript = loader( function ( options , callback ) {
// Handle memory leak in IE
script[ STR_ON_LOAD ] = script[ STR_ON_READY_STATE_CHANGE ] = NULL;

head.removeChild( script );
head[ STR_REMOVE_CHILD ]( script );

if ( callback ) {
// Give time for execution (thank you so much, Opera devs!)
Expand Down
4 changes: 2 additions & 2 deletions src/loaders/stylesheet.js
Expand Up @@ -3,9 +3,9 @@ var loadStyleSheet = loader( function( options , callback ) {
var link = document[ STR_CREATE_ELEMENT ]( "link" ),
title = options.title;

link.rel = "stylesheet";
link.rel = STR_STYLESHEET;
link.type = "text/css";
link.media = options.media || "screen";
link[ STR_MEDIA ] = options[ STR_MEDIA ] || "screen";
link[ STR_HREF ] = options[ STR_URL ];

if ( options[ STR_CHARSET ] ) {
Expand Down

0 comments on commit 43590e0

Please sign in to comment.