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

No edit summary
Line 89: Line 89:
* Need to figure out ContentFrames.
* Need to figure out ContentFrames.
* 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>. '''Then let's simplify to
* 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>. '''Then let's simplify to
<tt>require("basic-widget").Widget(options)</tt> without the new, using the
require("basic-widget").Widget(options) without the new, using the
auto-constructor pattern.'''
auto-constructor pattern.'''


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

edits