Skip to content
This repository has been archived by the owner on Oct 27, 2020. It is now read-only.

'id' attribute in a loop each (3dio-inspector-plugins.js, str 260) #3

Open
1flyby opened this issue Jun 23, 2018 · 0 comments
Open

Comments

@1flyby
Copy link

1flyby commented Jun 23, 2018

h1, everyone! I found something strange in code of inspector-plugins,
this is from 3dio-inspector-plugins.js, str 260.

Object.keys(plugins).forEach(function (name) {
	    var pluginButton = el('<div>', {
	      id: 'io3d-inspector-plugins___plugins-menu___button',
	      html: plugins[name].displayTitle,
	      click: function () {
	        showPlugin(name);
	      }
	    });
	    pluginButton.addEventListener('click', function () {

	    });
	    menuEl.append(pluginButton);
	  });

why here is 'id' for each?
screenshot_6

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant