Bugfix: Fixes #128 Fixes issue where compressed/concatenated file breaks if angular is not present.

This commit is contained in:
Estevão Soares dos Santos 2015-01-06 16:06:00 +00:00
parent b8675cb43f
commit e4d96c4fd8
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "showdown",
"version": "0.3.3",
"version": "0.3.4",
"author": "John Fraser",
"contributors": [
"John Gruber",

View File

@ -4,7 +4,7 @@
//Check if AngularJs and Showdown is defined and only load ng-Showdown if both are present
if (angular && Showdown) {
if (typeof angular !== 'undefined' && typeof Showdown !== 'undefined') {
(function (module, Showdown) {