From 9004ef0bf86e453105598b462769d2d3837ac383 Mon Sep 17 00:00:00 2001 From: ScottDowne Date: Mon, 7 Mar 2011 09:54:25 -0500 Subject: [PATCH] [#340] mustache plugin using getScript --- plugins/mustache/popcorn.mustache.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/plugins/mustache/popcorn.mustache.js b/plugins/mustache/popcorn.mustache.js index 5cca26f..f393445 100644 --- a/plugins/mustache/popcorn.mustache.js +++ b/plugins/mustache/popcorn.mustache.js @@ -2,17 +2,7 @@ (function (Popcorn) { - // TODO: swap to getScript() - (function() { - var mustacheUrl = 'https://github.com/janl/mustache.js/raw/master/mustache.js'; - - var head = document.getElementsByTagName('head')[0]; - var script = document.createElement('script'); - - script.type = 'text/javascript'; - script.src = mustacheUrl; - head.insertBefore( script, head.firstChild ); - })(); + Popcorn.getScript('https://github.com/janl/mustache.js/raw/master/mustache.js'); /** * Mustache Popcorn Plug-in -- 2.43.0