Total Complexity | 0 |
Complexity/F | 0 |
Lines of Code | 34 |
Function Count | 0 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | /** |
||
16 | Ext.define('Shopware.apps.WbmTemplateManager.model.Template', { |
||
|
|||
17 | extend : 'Ext.data.Model', |
||
18 | fields : [ |
||
19 | { |
||
20 | name: 'name', |
||
21 | type: 'string' |
||
22 | }, |
||
23 | { |
||
24 | name: 'content', |
||
25 | type: 'string' |
||
26 | }, |
||
27 | { |
||
28 | name: 'oContent', |
||
29 | type: 'string' |
||
30 | }, |
||
31 | { |
||
32 | name: 'custom', |
||
33 | type: 'int' |
||
34 | } |
||
35 | ], |
||
36 | proxy: { |
||
37 | type : 'ajax', |
||
38 | api:{ |
||
39 | read : '{url action=list}', |
||
40 | create : '{url action="create"}', |
||
41 | update : '{url action="update"}', |
||
42 | destroy : '{url action="delete"}' |
||
43 | }, |
||
44 | reader : { |
||
45 | type : 'json', |
||
46 | root : 'data' |
||
47 | } |
||
48 | } |
||
49 | }); |
||
50 |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.