From 409fd44b47907cabd800ff25c02cb32313bfb87d Mon Sep 17 00:00:00 2001 From: Adrian Lee Date: Mon, 3 Feb 2014 16:21:46 -0800 Subject: [PATCH] chore(mac): Added internal isScope function --- src/main.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.coffee b/src/main.coffee index 7a21387..7cadc61 100644 --- a/src/main.coffee +++ b/src/main.coffee @@ -34,6 +34,9 @@ getStyles = (element) -> isWindow = (obj) -> return obj and obj.document and obj.location and obj.alert and obj.setInterval +isScope = (obj) -> + return obj and obj.$evalAsync? and obj.$watch? + getWindow = (element) -> if isWindow(element) then element else element.nodeType is 9 and element.defaultView