Conditions | 1 |
Paths | 1 |
Total Lines | 28 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | define(function(require) { |
||
2 | 'use strict'; |
||
3 | |||
4 | var LineItemProductView; |
||
5 | var BaseProductView = require('oroproduct/js/app/views/base-product-view'); |
||
6 | var _ = require('underscore'); |
||
7 | |||
8 | LineItemProductView = BaseProductView.extend({ |
||
9 | elements: _.extend({}, BaseProductView.prototype.elements, { |
||
10 | id: '[data-name="field__product"]', |
||
11 | quantity: '[data-name="field__quantity"]:first', |
||
12 | unit: '[data-name="field__product-unit"]' |
||
13 | }), |
||
14 | |||
15 | modelElements: _.extend({}, BaseProductView.prototype.modelElements, { |
||
16 | id: 'id' |
||
17 | }), |
||
18 | |||
19 | /** |
||
20 | * @inheritDoc |
||
21 | */ |
||
22 | constructor: function LineItemProductView() { |
||
23 | LineItemProductView.__super__.constructor.apply(this, arguments); |
||
24 | } |
||
25 | }); |
||
26 | |||
27 | return LineItemProductView; |
||
28 | }); |
||
29 |