From 7ce46b3b411935538bcf442e4ee395c717876c44 Mon Sep 17 00:00:00 2001 From: SonoIo Date: Thu, 19 Feb 2015 14:47:28 +0100 Subject: [PATCH] fix --- bower.json | 2 +- lib/context.js | 17 ++++++++++++++++- package.json | 2 +- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/bower.json b/bower.json index 20b6d4c..ee14f0a 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "context-utils", - "version": "1.0.0", + "version": "1.0.1", "homepage": "https://github.com/SonoIo/context-utils", "authors": [ "Inside a bit" diff --git a/lib/context.js b/lib/context.js index f8bc109..97a67c4 100644 --- a/lib/context.js +++ b/lib/context.js @@ -1,2 +1,17 @@ +;(function (root, factory) { -module.exports = {}; + if (typeof define === 'function' && define.amd) { + define([], function () { + return factory(root); + }); + } + else if (typeof exports !== 'undefined') { + module.exports = factory(root); + } + else { + root.context = factory(root); + } + +}(this, function (root) { + return {}; +})); diff --git a/package.json b/package.json index e0ef070..4f6ceae 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "context-utils", - "version": "1.0.0", + "version": "1.0.1", "description": "Context utils for browser and node.js", "main": "lib/context.js", "repository": {