Skip to content

Instantly share code, notes, and snippets.

@mdix
Last active December 26, 2015 10:09
Show Gist options
  • Save mdix/7135117 to your computer and use it in GitHub Desktop.
Save mdix/7135117 to your computer and use it in GitHub Desktop.
// states if the layer is opened (true)
var isOpened;
isOpened = status;
/* removes layer if already opened and runs a function to
output the state of the other layers */
if (isOpened) {
doSomething();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment