A better test (checks to see if it's even defined)

This commit is contained in:
mattbrailsford
2014-04-18 15:52:26 +01:00
parent fe4da60b15
commit d66998a3e3

View File

@@ -30,7 +30,7 @@ angular.module("umbraco")
var await = [];
//queue file loading
if (!tinymce) { // Don't reload tinymce if already loaded
if (typeof tinymce === "undefined") { // Don't reload tinymce if already loaded
await.push(assetsService.loadJs("lib/tinymce/tinymce.min.js", $scope));
}