More efficient way of doing this.
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 21 Jan 2009 23:58:36 +0000 (16:58 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 21 Jan 2009 23:58:36 +0000 (16:58 -0700)
imp/js/src/DimpBase.js

index 10687f6..9c89af2 100644 (file)
@@ -1037,7 +1037,7 @@ var DimpBase = {
     _portalCallback: function(r)
     {
         if (r.response.linkTags) {
-            var head = $$('HEAD').first();
+            var head = $(document.documentElement).down('HEAD');
             r.response.linkTags.each(function(newLink) {
                 var link = new Element('LINK', { type: 'text/css', rel: 'stylesheet', href: newLink.href });
                 if (newLink.media) {