Skip to content

Commit

Permalink
Merge pull request #3 from cjhoward92/regex
Browse files Browse the repository at this point in the history
Removed unneeded has routine
  • Loading branch information
cjhoward92 authored Jun 6, 2017
2 parents 3922a67 + 5fe7595 commit 098a92a
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions lib/createContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,22 +119,6 @@ module.exports = function createContainer (options, __parentContainer) {
*/
set: (target, name, value) => {
throw new Error(`Attempted setting property "${name}" on container cradle - this is not allowed.`)
},

/**
* The `has` handler is invoked whenever an in-call for `<dependency> in container.cradle` is made.
*
* @param {object} target
* The proxy target. Irrelevant.
*
* @param {string} name
* The property name.
*
* @return {boolean}
* True is the dependency is registered, otherwise false
*/
has: (target, name) => {
return !!rollUpRegistrations()[name]
}
})

Expand Down

0 comments on commit 098a92a

Please sign in to comment.