Skip to content
This repository has been archived by the owner on May 30, 2022. It is now read-only.

Commit

Permalink
chore(mac): Added internal isScope function
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianlee44 committed Feb 4, 2014
1 parent 94e8a93 commit 409fd44
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 409fd44

Please sign in to comment.