Skip to content

Commit

Permalink
Merge pull request #86 from vigour-io/feature/removeOpt
Browse files Browse the repository at this point in the history
Feature/remove opt
  • Loading branch information
Jim de Beer authored Sep 26, 2016
2 parents 0964a1a + af475b3 commit 9e4653e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
4 changes: 2 additions & 2 deletions lib/observable/remove.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ exports.define = {
stamp = vstamp.create()
created = true
}
if (stamp) {
let on
if (stamp && (on = this._emitters)) {
if (created) {
let on = this._emitters
let emitter = on._data || on.data
let remitter = on._removeEmitter || on.removeEmitter
target.emitRemove(stamp, created, void 0)
Expand Down
20 changes: 6 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,20 @@
"vigour-base": "^3.3.13",
"vigour-stamp": "^1.3.4",
"vigour-util": "^3.0.0",
"babelify": "^7.3.0",
"babel-preset-es2015": "^6.6.0"
"bubleify": "0.5.1"
},
"devDependencies": {
"ducktape": "^1.0.0",
"tap-difflet": "0.4.0",
"tape": "4.4.0",
"tap-difflet": "0.6.0",
"tape": "^4.6.0",
"observ": "0.2.0",
"vigour-performance": "^1.2.3",
"nodemon": "^1.9.1",
"coveralls": "^2.11.9",
"istanbul": "^0.4.3",
"standard": "^7.0.1",
"standard": "^8.0.1",
"pre-commit": "^1.1.3",
"budo": "^8.2.2"
"budo": "9.0.0"
},
"repository": {
"type": "git",
Expand All @@ -48,14 +47,7 @@
},
"browserify": {
"transform": [
[
"babelify",
{
"presets": [
"es2015"
]
}
]
"bubleify"
]
},
"homepage": "https://github.com/vigour-io/observable#readme"
Expand Down

0 comments on commit 9e4653e

Please sign in to comment.