Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Return A "Constructor" Function

 var Backbone = {};
Backbone.Model = function Person(name)
{
  this.name = name;
}
var person = Backbone.Model;

Backbone.Model.extend = function()
{
  return this;
}

console.log(Backbone.Model.extend());
/* function Person*/
 
PREVIOUS NEXT
Tagged: #Return #A #Function
ADD COMMENT
Topic
Name
9+3 =