Skip to content

Commit

Permalink
Merge pull request #99 from kbejnar/master
Browse files Browse the repository at this point in the history
Updated gmap3 module to UMD
  • Loading branch information
arthur-e authored Mar 17, 2017
2 parents 335d90d + 787e79a commit bd12e95
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions wicket-gmap3.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,19 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
(function (Wkt) {
(function ( root, factory ) {
if ( typeof exports === 'object' ) {
// CommonJS
factory( require('./wicket') );
} else if ( typeof define === 'function' && define.amd ) {
// AMD. Register as an anonymous module.
define( ['wicket'], factory);
} else {
// Browser globals
factory(root.Wkt );
}
}
(this, function(Wkt) {

/**
* @augments Wkt.Wkt
Expand Down Expand Up @@ -741,4 +753,6 @@
console.log('The passed object does not have any recognizable properties.');

};
}(Wkt || require('./wicket')));

return Wkt;
}));

0 comments on commit bd12e95

Please sign in to comment.