From cbbea911245a7e7fbf4a720e204f2e5fc1dc914f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 29 Nov 2012 11:40:36 +0100 Subject: [PATCH] Add default value for attributes of Sao.Model --- js/model.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/model.js b/js/model.js index d336d4bd78..1a0f81d3ec 100644 --- a/js/model.js +++ b/js/model.js @@ -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 = {};