Initial commit

This commit is contained in:
Juho Teperi
2013-05-13 11:43:34 +03:00
commit fbf8fb087a
44 changed files with 2425 additions and 0 deletions

20
app/scripts/models/leg.js Normal file
View File

@@ -0,0 +1,20 @@
define([
'backbone'
], function (Backbone) {
var num = 1;
var Leg = Backbone.Model.extend({
initialize: function () {
this.set('airportId', this.get('id'));
this.set('id', num);
++num;
},
destroy: function () {
this.trigger('destroy', this, this.collection, {});
}
});
return Leg;
});