Fix ADM support to avoid error messages.

This commit is contained in:
Jürg Lehni 2013-06-12 00:07:56 -07:00
parent cb1f9e5b7c
commit 3d99b5e931

View file

@ -132,5 +132,5 @@ return paper;
};
// Support AMD (e.g. require.js)
if (define && define.amd)
if (typeof define === 'function' && define.amd)
define(paper);