Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eventify

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eventify - npm Package Compare versions

Comparing version 0.3.3 to 0.3.4

2

dist/eventify.min.js

@@ -1,2 +0,2 @@

// eventify - v0.3.3 (2012-07-18)
// eventify - v0.3.4 (2013-04-28)
// -----------------

@@ -3,0 +3,0 @@ // Copyright(c) 2010-2012 Jeremy Ashkenas, DocumentCloud

@@ -70,2 +70,5 @@ module.exports = function (grunt) {

// Build task.
grunt.registerTask('build', 'lint concat min');
};

@@ -32,3 +32,3 @@ // Eventify

// by your application and you want a different name. For example:
// // Decare before including the Eventify library
// // Declare before including the Eventify library
// var localEventifyLibraryName = 'EventManager';

@@ -35,0 +35,0 @@ localName = root.localEventifyLibraryName || "Eventify",

{
"name": "eventify",
"version": "0.3.3",
"version": "0.3.4",
"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",

@@ -33,3 +33,3 @@ "author": "Bermi Ferrer <bermi@bermilabs.com>",

"engines": {
"node": "*"
"node": ">= 0.6.x"
},

@@ -39,5 +39,5 @@ "dependencies": {

"devDependencies": {
"mocha": "1.0.x",
"grunt": "0.3.x",
"expect.js": "0.1.x"
"mocha": "~1.9.0",
"expect.js": "~0.2.0",
"grunt": "~0.3.x"
},

@@ -47,4 +47,18 @@ "scripts": {

},
"testling": {
"browsers": [
"iexplore/7..latest",
"firefox/10..latest",
"chrome/20..latest",
"opera/12..latest",
"safari/4..latest",
"iphone/6..latest",
"ipad/6..latest",
"android-browser/4.2"
],
"harness": "mocha",
"files": "test/*.js"
},
"ender": "./lib/ender.js",
"main": "./lib/eventify.js"
}
# Eventify
Eventify is a lightweight module that can be mixed in to any object in order to provide it with custom events. It has no external dependencies. Based on Backbone.Events
[![Build Status](https://secure.travis-ci.org/bermi/eventify.png?branch=master)](http://travis-ci.org/bermi/eventify)
Eventify is a lightweight module that can be mixed in to any object in order to provide it with custom events. It has no external dependencies. Based on Backbone.Events
[![browser support](http://ci.testling.com/bermi/eventify.png)](http://ci.testling.com/bermi/eventify)

@@ -11,3 +13,3 @@ ## Installing

A 1.6k (830 bytes gzipped) browser ready version is available on the dist/ folder.
A 1.7k (867 bytes gzipped) browser ready version is available on the dist/ folder.

@@ -34,9 +36,9 @@ <script src="https://raw.github.com/bermi/eventify/master/dist/eventify.min.js" type="text/javascript"></script>

var object = {};
Eventify.enable(object);
object.on("alert", function(msg) {
alert("Triggered " + msg);
});
object.trigger("alert", "an event");

@@ -70,3 +72,3 @@

### *off* object.off([event], [callback], [context])
Remove a previously-bound callback function from an object. If no context is specified, all of the versions of the callback with different contexts will be removed. If no callback is specified, all callbacks for the event will be removed. If no event is specified, all event callbacks on the object will be removed.

@@ -89,3 +91,3 @@

### *trigger* object.trigger(event, [*args])
### *trigger* object.trigger(event, [*args])

@@ -95,3 +97,3 @@ Trigger callbacks for the given event, or space-delimited list of events. Subsequent arguments to trigger will be passed along to the event callbacks.

### *noClonflict* var LocalEventify = Eventify.noConflict();
### *noClonflict* var LocalEventify = Eventify.noConflict();

@@ -98,0 +100,0 @@ Returns the Eventify object back to its original value. You can use the return value of Eventify.noConflict() to keep a local reference to Eventify. Useful for embedding Eventify on third-party websites, where you don't want to clobber the existing Eventify object.

@@ -6,3 +6,3 @@ (function (root) {

if (typeof window === 'undefined') {
if (typeof require !== 'undefined') {
root.Eventify = "original";

@@ -9,0 +9,0 @@ Eventify = require('../index.js');

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc