From f67f34d889a936e81b69ecbaeed6fe5ad16af8c3 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 22 Aug 2014 19:27:20 -0400 Subject: [PATCH] FIX: Load order of Javascript files --- lib/pretty_text.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pretty_text.rb b/lib/pretty_text.rb index 8e6e10002c9..57c9071e5ab 100644 --- a/lib/pretty_text.rb +++ b/lib/pretty_text.rb @@ -76,7 +76,7 @@ module PrettyText "app/assets/javascripts/discourse/lib/markdown.js" ) - Dir["#{Rails.root}/app/assets/javascripts/discourse/dialects/**.js"].each do |dialect| + Dir["#{Rails.root}/app/assets/javascripts/discourse/dialects/**.js"].sort.each do |dialect| unless dialect =~ /\/dialect\.js$/ ctx.load(dialect) end