This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Person(name) { | |
this.name = name; | |
} | |
Person.prototype.getName = function() { | |
return this.name; | |
}; | |
function Author(name, books) { | |
Author.superClass.constructor.call(this, name); | |
this.books = books; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.margin-top { | |
margin-top: 20px; | |
} | |
.margin-right { | |
margin-right: 20px; | |
} | |
.margin-bottom { | |
margin-bottom: 20px; | |
} | |
.margin-left { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define([ 'utils/Singleton' ], | |
function(Singleton) { | |
'use strict'; | |
var MyClass; | |
MyClass = (function() { | |
function MyClass() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Helper - Equalize height of elements in a module between modules | |
* | |
* @param { string } - selector ( e.g. '.header' ) | |
* @param { element } - context ( e.g. $('#blog') ) | |
*/ | |
function equalHeight(selector, context) { | |
var maxHeight = 0 | |
$modules = $( selector, context ); |
OlderNewer