Permalink
Browse files

Change how prototype is assigned to ensure they are not shared betwee…

…n models. Closes GH-1
  • Loading branch information...
1 parent e515804 commit 4c0e48a1af931e03b345b553f8ab0a96d7622c64 @tristandunn tristandunn committed Dec 21, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 jester.js
View
@@ -26,8 +26,8 @@ Object.extend(Jester.Resource, {
{
var new_model = null;
new_model = eval(model + " = " + Jester.Constructor(model));
- new_model.prototype = new Jester.Resource();
Object.extend(new_model, Jester.Resource);
+ new_model.prototype = new Jester.Resource();
// We delay instantiating XML.ObjTree() so that it can be listed at the end of this file instead of the beginning
if (!Jester.Tree) {

0 comments on commit 4c0e48a

Please sign in to comment.