Skip to content

Commit

Permalink
Merge pull request adambard#1967 from victor-dsc/javascript-fixing
Browse files Browse the repository at this point in the history
fixing javascript translate
  • Loading branch information
Spurlow committed Nov 27, 2015
2 parents 98e2cf0 + 04694a0 commit e802fd6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pt-br/javascript-pt.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,6 @@ var myPrototype = {
myObj.__proto__ = myPrototype;
myObj.meaningOfLife; // = 42

// This works for functions, too.
// Isto funciona para funções, também.
myObj.myFunc(); // = "olá mundo!"

Expand Down Expand Up @@ -506,7 +505,7 @@ String.prototype.firstCharacter = function(){

// Havíamos mencionado que `Object.create` não estava ainda disponível em
// todos as implementações, mas nós podemos usá-lo com esse polyfill:
if (Object.create === undefined){ // don't overwrite it if it exists
if (Object.create === undefined){ // Não o sobrescreve se já existir
Object.create = function(proto){
// faz um construtor temporário com o prototype certo
var Constructor = function(){};
Expand Down

0 comments on commit e802fd6

Please sign in to comment.