From 4ae14122c9cc377fd96f8ee3be227631c65ce21d Mon Sep 17 00:00:00 2001 From: Colin Van Dyke Date: Wed, 23 Sep 2015 14:37:05 -0400 Subject: [PATCH] Fixes openWindow function def and call --- src/chaplin/views/layout.coffee | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/chaplin/views/layout.coffee b/src/chaplin/views/layout.coffee index 40a9bb60..9a81ee41 100644 --- a/src/chaplin/views/layout.coffee +++ b/src/chaplin/views/layout.coffee @@ -132,7 +132,7 @@ module.exports = class Layout extends View if @settings.openExternalToBlank # Open external links normally in a new tab. event.preventDefault() - @openWindow href el + @openWindow href, el return # Pass to the router, try to route the path internally. @@ -142,9 +142,9 @@ module.exports = class Layout extends View event.preventDefault() return - # Handle all browsing context resources - openWindow: (href, el) -> - window.open href + # Handle all browsing context resources + openWindow: (href, el) -> + window.open href # Region management # -----------------