Created
January 2, 2015 19:44
-
-
Save fredyang/3e89b3ec8ad63ae3fc1c to your computer and use it in GitHub Desktop.
test an object is scope
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function isScope(obj) { | |
return obj && obj.$evalAsync && obj.$watch; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment