Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(546)

Side by Side Diff: lib/src/prism/plugins/autoloader/prism-autoloader.min.js

Issue 1418513006: update elements and fix some bugs (Closed) Base URL: git@github.com:dart-lang/polymer_elements.git@master
Patch Set: code review updates Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 !function(){if("undefined"!=typeof self&&self.Prism&&self.document&&document.cre ateElement){var e={javascript:"clike",actionscript:"javascript",aspnet:"markup", bison:"c",c:"clike",csharp:"clike",cpp:"c",coffeescript:"javascript",crystal:"ru by","css-extras":"css",d:"clike",dart:"clike",fsharp:"clike",glsl:"clike",go:"cl ike",groovy:"clike",haml:"ruby",handlebars:"markup",jade:"javascript",java:"clik e",less:"css",markdown:"markup",nginx:"clike",objectivec:"c",php:"clike","php-ex tras":"php",processing:"clike",qore:"clike",jsx:["markup","javascript"],ruby:"cl ike",sass:"css",scss:"css",scala:"java",smarty:"markup",swift:"clike",textile:"m arkup",twig:"markup",typescript:"javascript",wiki:"markup"},c={},a=Prism.plugins .autoloader={languages_path:"components/",use_minified:!0},s=function(e,c,a){var s=document.createElement("script");s.src=e,s.async=!0,s.onload=function(){docum ent.body.removeChild(s),c&&c()},s.onerror=function(){document.body.removeChild(s ),a&&a()},document.body.appendChild(s)},n=function(e){return a.languages_path+"p rism-"+e+(a.use_minified?".min":"")+".js"},r=function(e,a){var s=c[e];s||(s=c[e] ={});var n=a.getAttribute("data-dependencies");!n&&a.parentNode&&"pre"===a.paren tNode.tagName.toLowerCase()&&(n=a.parentNode.getAttribute("data-dependencies")), n=n?n.split(/\s*,\s*/g):[],i(n,function(){t(e,function(){Prism.highlightElement( a)})})},i=function(e,c,a){"string"==typeof e&&(e=[e]);var s=0,n=e.length,r=funct ion(){n>s?t(e[s],function(){s++,r()},function(){a&&a(e[s])}):s===n&&c&&c(e)};r() },t=function(a,r,t){var u=function(){var e=!1;a.indexOf("!")>=0&&(e=!0,a=a.repla ce("!",""));var i=c[a];if(i||(i=c[a]={}),r&&(i.success_callbacks||(i.success_cal lbacks=[]),i.success_callbacks.push(r)),t&&(i.error_callbacks||(i.error_callback s=[]),i.error_callbacks.push(t)),!e&&Prism.languages[a])l(a);else if(!e&&i.error )o(a);else if(e||!i.loading){i.loading=!0;var u=n(a);s(u,function(){i.loading=!1 ,l(a)},function(){i.loading=!1,i.error=!0,o(a)})}},p=e[a];p&&p.length?i(p,u):u() },l=function(e){c[e]&&c[e].success_callbacks&&c[e].success_callbacks.length&&c[e ].success_callbacks.forEach(function(c){c(e)})},o=function(e){c[e]&&c[e].error_c allbacks&&c[e].error_callbacks.length&&c[e].error_callbacks.forEach(function(c){ c(e)})};Prism.hooks.add("complete",function(e){e.element&&e.language&&!e.grammar &&r(e.language,e.element)})}}();
OLDNEW
« no previous file with comments | « lib/src/prism/plugins/autoloader/prism-autoloader.js ('k') | lib/src/prism/plugins/file-highlight/prism-file-highlight.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698