goupviet / joose-js

Automatically exported from code.google.com/p/joose-js
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

builder doesn't seems to work #27

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. use builder option inside has section of any class

What is the expected output? What do you see instead?
Property should get value, but it becomes null instead.
Works with init, but not with builder...

What version of the product are you using? On what operating system?
joose 3 with jquery and ui

Please provide any additional information below.

 Class('User', {
        has : {
            lastLogin : { is : 'rw', builder : 'buildLastLogin' }
        },
        methods : {
            buildLastLogin : function () { return new Date() }
        }
    });

$(function(){   
    var u = new User();
    console.log(u.getLastLogin());
});

Original issue reported on code.google.com by nekdo...@gmail.com on 12 May 2012 at 12:45