Created
January 18, 2012 16:10
-
-
Save superfeedr/1633773 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 _ = require('underscore')._, | |
backbone = require('backbone'); | |
var AppModel = backbone.Model.extend({ | |
defaults: { | |
}, | |
initialize: { | |
} | |
}); | |
var model = new AppModel({cool: 'stuff'}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Property 'initialize' of object [object Object] is not a function
at [object Object]. (/Users/julien/repos/msgboy/node_modules/backbone/backbone.js:146:10)
at new (/Users/julien/repos/msgboy/node_modules/backbone/backbone.js:1103:41)
at Object. (/Users/julien/repos/msgboy/tmp/msgboy-server.js:12:14)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Array.0 (module.js:470:10)
at EventEmitter._tickCallback (node.js:192:40)