Add default value for attributes of Sao.Model
This commit is contained in:
1 parent
c1fdf7b852
commit
cbbea91124
1 file changed
+1
@@ -4,6 +4,7 @@
|
||||
|
||||
Sao.Model = Class(Object, {
|
||||
init: function(name, attributes) {
|
||||
attributes = attributes || {};
|
||||
this.name = name;
|
||||
this.session = Sao.Session.current_session;
|
||||
this.fields = {};
|
||||
|
||||
Reference in new issue
Block a user