Skip to content

Commit

Permalink
Check for define.amd
Browse files Browse the repository at this point in the history
  • Loading branch information
diegocr committed May 18, 2014
1 parent e931375 commit 99b632e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jspdf.js
Original file line number Diff line number Diff line change
Expand Up @@ -1695,7 +1695,7 @@ var jsPDF = (function(global) {
jsPDF.API = {events:[]};
jsPDF.version = "1.0.0-trunk";

if (typeof define === 'function') {
if (typeof define === 'function' && define.amd) {
define(function() {
return jsPDF;
});
Expand Down

0 comments on commit 99b632e

Please sign in to comment.