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
##== Common members and their respective js code ==## | |
# Recommended codestyle | |
class Class | |
static_inner = 'var static_inner' | |
constructor: ()-> | |
instance_inner = 'var instance_inner' | |
@instance_own = 'this.instance_own' | |
instance: 'Class.prototype.instance' |
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
// функция для поверхностного (shallow) копирования полей | |
// из src в поверхностную копию dest | |
var copy = function(dest, src){ | |
var result = {}; | |
// копируем все собственные (own) поля сначала из dest в result, | |
// потом из src в result | |
[dest, src].forEach( function(obj){ | |