Socket
Socket
Sign inDemoInstall

qi-events

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qi-events - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

3

index.js
/**
* qi-events 0.0.3
* qi-events 0.0.4
* http://drkibitz.github.io/qi-events/
* Copyright (c) 2013 Dr. Kibitz, http://drkibitz.com
* A no nonsense event API (BASED ON Backbone.Events).
* built: Sun Sep 08 2013 10:38:44 GMT-0700 (PDT)
*

@@ -7,0 +8,0 @@ * Backbone.js 0.9.10

@@ -30,3 +30,3 @@ {

},
"version": "0.0.3"
"version": "0.0.4"
}

@@ -44,4 +44,4 @@ [![Build Status](https://travis-ci.org/drkibitz/qi-events.png?branch=master)](https://travis-ci.org/drkibitz/qi-events)

a. Added static Events.mixin function to replace Backbone mixin functionality
b. Underscore was only used for slice, just using the native method
1. Added mixin method to replace Backbone mixin functionality
2. Underscore was only used for slice, just using the native method

@@ -52,13 +52,13 @@ 5. Completely removed listenTo(), listenToOnce(), and stopListening() methods

a. This is a micro optimization and allows better obfuscation
1. This is a micro optimization and allows better obfuscation
8. trigger() no longer calls eventsApi(), this is a very rare (and mostly unnecessary) use case that can be avoided
a. Optimization is important when triggering, but convenience is important when adding and removing
1. Optimization is important when triggering, but convenience is important when adding and removing
9. With trigger not using eventsApi(), it allowed further optimizations on eventsApi() and trigger()
a. Removed ctx property from _events[name] object, just use context property instead
b. Fixed lint errors in the process
1. Removed ctx property from _events[name] object, just use context property instead
2. Fixed lint errors in the process
10. Added aStart argument to triggerEvents() as a logical slice removing slice call for most cases
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