Labs/Jetpack/Reboot/JEP/102: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Line 26: Line 26:
         Used for things that only appear under certain conditions
         Used for things that only appear under certain conditions
**/
**/
feature = new require("visual-feature").Feature(options);
feature = new require("simple-feature").Feature(options);


/**
/**
Line 73: Line 73:
=== Key Issues ===
=== Key Issues ===
* What are the conditions that we should impose on add-ons being included in this UI element.
* What are the conditions that we should impose on add-ons being included in this UI element.
* The code <tt>new require("visual-feature").Feature(options)</tt> is actually wrong due to the way the <tt>new</tt> operator works, which would, this code, regard <tt>require</tt> as a constructor. The correct code would be <tt>new (require("visual-feature")).Feature(options)</tt>.
* The code <tt>new require("simple-feature").Feature(options)</tt> is actually wrong due to the way the <tt>new</tt> operator works, which would, this code, regard <tt>require</tt> as a constructor. The correct code would be <tt>new (require("simple-feature")).Feature(options)</tt>.


=== Dependencies & Requirements ===
=== Dependencies & Requirements ===
577

edits

Navigation menu