瀏覽代碼

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

Estevão Soares dos Santos 10 年之前
父節點
當前提交
e4d96c4fd8
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      package.json
  2. 1 1
      src/ng-showdown.js

+ 1 - 1
package.json

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

+ 1 - 1
src/ng-showdown.js

@@ -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) {