Add default value for attributes of Sao.Model

This commit is contained in:
Cédric Krier committed 2012-11-29 11:40:36 +01:00
1 parent c1fdf7b852
commit cbbea91124
1 file changed
+1
+1
View File
@@ -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 = {};