From e06a42a660d75fab048fbdcf438af42e040e87f3 Mon Sep 17 00:00:00 2001 From: Hike Danakian Date: Wed, 29 May 2013 17:35:40 -0700 Subject: [PATCH] added RequestJs support, as module 'infobubble' --- infobubble.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/infobubble.js b/infobubble.js index f883c11..78cc361 100644 --- a/infobubble.js +++ b/infobubble.js @@ -98,7 +98,13 @@ function InfoBubble(opt_options) { this.setValues(options); } -window['InfoBubble'] = InfoBubble; + +if (typeof define === 'function' && define.amd) { + define('infobubble', ['google'], function() { return InfoBubble; }); +} +if (typeof window === 'object') { + window['InfoBubble'] = InfoBubble; +} /**