Skip to content

Instantly share code, notes, and snippets.

@eduardordm
Created February 22, 2013 21:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eduardordm/5016594 to your computer and use it in GitHub Desktop.
Save eduardordm/5016594 to your computer and use it in GitHub Desktop.
l
$scope.doStuff = function(attrs) {
if($rootScope.stuffLocked) {
return;
}
$rootScope.stuffLocked = true;
// load stuff, etc
$rootScope.stuffLocked = false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment