var WebsiteModel = Backbone.Model.extend({
initialize: function() {
console.log("Test");
}
});
jQuery(document).ready(function($) {
var page = new WebsiteModel({name: "Lionel"});
console.log(page);
});
var WebsiteModel = Backbone.Model.extend({
initialize: function() {
console.log("Test");
}
});
jQuery(document).ready(function($) {
var page = new WebsiteModel();
page.set({name: "Lionel"});
console.log(page);
});
var WebsiteModel = Backbone.Model.extend({
initialize: function() {
console.log("Test");
}
});
jQuery(document).ready(function($) {
var page = new WebsiteModel();
page.set({name: "Lionel"});
console.log(page.get("name"));
});
var WebsiteModel = Backbone.Model.extend({
default: {
name: 'Website'
},
initialize: function() {
console.log("Test");
}
});
jQuery(document).ready(function($) {
var page = new WebsiteModel();
page.set({name: "Lionel"});
console.log(page);
});