Created
March 11, 2009 05:57
-
-
Save fwextensions/77340 to your computer and use it in GitHub Desktop.
Fireworks: Saving and restoring the current selection
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
// make a copy of the current selection by concatenating it | |
// with an empty array | |
var originalSelection = [].concat(fw.selection); | |
for (var i = 0, len = originalSelection.length; i < len; i++) { | |
// change the selection as needed | |
} | |
// restore the original copy of the selection | |
fw.selection = originalSelection; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment