Skip to content

Commit

Permalink
removing config || {} slides because those are no longer needed if we…
Browse files Browse the repository at this point in the history
… use Object.create() instead of new Object()
  • Loading branch information
brendajin committed Aug 8, 2015
1 parent 0eaadb9 commit 2cfddfc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion jsoo/exercise_constructors_solution.js
@@ -1,6 +1,5 @@
/* From the first exercise */
function Video(config) {
config = config || {};
this.title = config.title || "Untitled";
this.uploader = config.uploader || "Unknown";
this.seconds = config.seconds || 0;
Expand Down
1 change: 0 additions & 1 deletion jsoo/index.html
Expand Up @@ -190,7 +190,6 @@ <h1>Optional Arguments</h1>

<p>versus:</p>
<pre><code>function Book(config) {
config = config || {};
this.title = config.title || "Untitled";
this.author = config.author || "Unknown";
this.numPages = config.numPages || 100;
Expand Down

0 comments on commit 2cfddfc

Please sign in to comment.