mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 19:43:16 +00:00
Add application tests
This commit is contained in:

committed by
Romain Neutron

parent
ac6c9970e2
commit
f886874f8d
@@ -4,7 +4,8 @@ define([
|
||||
], function(_, Backbone) {
|
||||
var FieldModel = Backbone.Model.extend({
|
||||
initialize : function(attributes, options) {
|
||||
if (attributes && ! "sbas-id" in attributes) {
|
||||
attributes = attributes || {};
|
||||
if (typeof attributes === "object" && false === "sbas-id" in attributes) {
|
||||
throw "You must set a sbas id";
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user