| Conditions | 1 |
| Paths | 1 |
| Total Lines | 25 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 2 |
| 1 | /* |
||
| 14 | return function($el, options) { |
||
| 15 | var defaults = {}, |
||
| 16 | |||
| 17 | subType = { |
||
| 18 | setValue: function(value) { |
||
| 19 | App.dom.data($el, 'value', value); |
||
|
|
|||
| 20 | }, |
||
| 21 | |||
| 22 | getValue: function() { |
||
| 23 | return App.dom.data($el, 'value'); |
||
| 24 | }, |
||
| 25 | |||
| 26 | needsValidation: function() { |
||
| 27 | return true; |
||
| 28 | }, |
||
| 29 | |||
| 30 | validate: function() { |
||
| 31 | var value = this.getValue(); |
||
| 32 | |||
| 33 | return value && value.page && value.page.uuid; |
||
| 34 | } |
||
| 35 | }; |
||
| 36 | |||
| 37 | return new Default($el, defaults, options, 'pageTreeRoute', subType); |
||
| 38 | }; |
||
| 39 | }); |
||
| 40 |
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.