Created
January 29, 2014 22:21
-
-
Save brett-richardson/8698342 to your computer and use it in GitHub Desktop.
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
class One | |
test: -> console.log 'test' | |
class @Two | |
test: -> console.log 'test' |
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
var One; | |
One = (function() { | |
function One() {} | |
One.prototype.test = function() { | |
return console.log('test'); | |
}; | |
return One; | |
})(); | |
this.Two = (function() { | |
function Two() {} | |
Two.prototype.test = function() { | |
return console.log('test'); | |
}; | |
return Two; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment