Comparing version 0.3.4 to 0.3.6
@@ -1,2 +0,2 @@ | ||
// eventify - v0.3.4 (2013-04-28) | ||
// eventify - v0.3.6 (2013-04-28) | ||
// ----------------- | ||
@@ -3,0 +3,0 @@ // Copyright(c) 2010-2012 Jeremy Ashkenas, DocumentCloud |
@@ -1,1 +0,5 @@ | ||
module.exports = process.env.NODE_ENV && process.env.NODE_ENV === 'coverage' ? require('./lib-cov/') : require('./lib/'); | ||
if (process.env.NODE_ENV && process.env.NODE_ENV === 'coverage') { | ||
module.exports = require('./lib-cov/eventify.js'); | ||
} else { | ||
module.exports = require('./lib/eventify.js'); | ||
} |
{ | ||
"name": "eventify", | ||
"version": "0.3.4", | ||
"version": "0.3.6", | ||
"description": "Lightweight module that can be mixed in to any object in order to provide it with custom events. For node.js and the browser. Based on Backbone.Events", | ||
@@ -60,3 +60,6 @@ "author": "Bermi Ferrer <bermi@bermilabs.com>", | ||
"ender": "./lib/ender.js", | ||
"main": "./lib/eventify.js" | ||
"main": "index", | ||
"directories": { | ||
"lib": "./lib" | ||
} | ||
} |
@@ -7,4 +7,2 @@ # Eventify | ||
[![browser support](http://ci.testling.com/bermi/eventify.png)](http://ci.testling.com/bermi/eventify) | ||
## Installing | ||
@@ -11,0 +9,0 @@ |
(function (root) { | ||
var expect = root.expect || require('expect.js'), | ||
Eventify; | ||
Eventify, | ||
is_commons = typeof require !== 'undefined'; | ||
if (typeof require !== 'undefined') { | ||
root.Eventify = "original"; | ||
Eventify = require('../index.js'); | ||
if (is_commons) { | ||
Eventify = require('../'); | ||
} else { | ||
@@ -15,10 +15,12 @@ Eventify = root.Eventify; | ||
describe('No conflict', function () { | ||
it('should restore original Eventify', function () { | ||
var b = Eventify, | ||
currentVersion = b.noConflict(); | ||
expect(currentVersion).to.be(b); | ||
expect(root.Eventify).to.be("original"); | ||
if (!is_commons) { | ||
describe('No conflict', function () { | ||
it('should restore original Eventify', function () { | ||
var b = Eventify, | ||
currentVersion = b.noConflict(); | ||
expect(currentVersion).to.be(b); | ||
expect(root.Eventify).to.be("original"); | ||
}); | ||
}); | ||
}); | ||
} | ||
@@ -132,3 +134,3 @@ describe("On and trigger", function () { | ||
describe("Two binds that unbind themeselves", function () { | ||
describe("Two binds that unbind themselves", function () { | ||
var obj = { counterA: 0, counterB: 0 }; | ||
@@ -298,3 +300,3 @@ Eventify.enable(obj); | ||
describe("Additional parameters", function () { | ||
it("should include aditional parameters", function (done) { | ||
it("should include additional parameters", function (done) { | ||
var obj = Eventify.enable(), | ||
@@ -301,0 +303,0 @@ param1 = "one", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
544
28981
13
169