Issue in Stdlib.isLayerSelected

Discussion of the xtools Toolkit

Moderators:xbytor, DavideBarranca, Paul MR

Post Reply
Issue in Stdlib.isLayerSelected

Post by myranalis » Fri Sep 17, 2010 3:12 am

Found a minor issue in this function that appears to still be present in the latest version of the library ( ... iew=markup ... iew=markup)

Code: Select allStdlib.isLayerSelected = function(doc, layer) {
   var selLayers = Stdlib.getSelectedLayers(doc, true);
   return sel.contains(layer);

Should instead be
Code: Select all return selLayers .contains(layer);


Issue in Stdlib.isLayerSelected

Post by xbytor » Fri Sep 17, 2010 6:02 am

Oops. Too much copypasta

I'll get the mod rolled in shortly.



Post Reply