Skip to content

Commit

Permalink
Merge pull request #1744 from BladeRunnerJS/fix-1743/change-ListenerC…
Browse files Browse the repository at this point in the history
…ompatUtil-to-use-typeof

changing ListenerCompatUtil to use typeof when checking listener meth…
  • Loading branch information
thecapdan authored Nov 8, 2016
2 parents 895b332 + 154f7ba commit 6ab0496
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ListenerCompatUtil.enhance = function(listenerMethod) {
notifyImmediately = method;
}
else {
if(!listener[method] || !(listener[method] instanceof Function)) {
if(!listener[method] || !(typeof listener[method] === 'function')) {
throw new TypeError("No such method '" + method + "' on the listener object.");
}

Expand Down
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions releases/v1.5.5.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"milestone": "1.5.5",
"name": "BladeRunnerJS 1.5.5",
"prerelease": false
}
7 changes: 7 additions & 0 deletions releases/v1.5.5.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## BladeRunnerJS @tagVersion@

BladeRunnerJS @tagVersion@ contains one minor bug fix.

### Bug fixes

- Fix provided to ensure ListenerCompatUtil correctly checks typeof of listener methods that works for all cases.

0 comments on commit 6ab0496

Please sign in to comment.