Skip to content

Instantly share code, notes, and snippets.

@fredyang
Created January 2, 2015 19:44
Show Gist options
  • Save fredyang/3e89b3ec8ad63ae3fc1c to your computer and use it in GitHub Desktop.
Save fredyang/3e89b3ec8ad63ae3fc1c to your computer and use it in GitHub Desktop.
test an object is scope
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