intelicoreact 0.1.54 → 0.1.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,26 +14,26 @@ var getCaretPosition = function getCaretPosition(ctrl) {
14
14
  range.moveStart('character', -ctrl.value.length);
15
15
  var start = range.text.length - rangelen;
16
16
  return {
17
- 'start': start,
18
- 'end': start + rangelen
17
+ start: start,
18
+ end: start + rangelen
19
19
  };
20
20
  } // IE >=9 and other browsers
21
- else if (ctrl.selectionStart || ctrl.selectionStart == '0') {
21
+ else if (ctrl.selectionStart || ctrl.selectionStart === '0') {
22
22
  return {
23
- 'start': ctrl.selectionStart,
24
- 'end': ctrl.selectionEnd
23
+ start: ctrl.selectionStart,
24
+ end: ctrl.selectionEnd
25
25
  };
26
26
  } else {
27
27
  return {
28
- 'start': 0,
29
- 'end': 0
28
+ start: 0,
29
+ end: 0
30
30
  };
31
31
  }
32
32
  };
33
33
 
34
34
  exports.getCaretPosition = getCaretPosition;
35
35
 
36
- var setCaretPosition = function setCaretPosition(ctrl, start, end) {
36
+ var setCaretPosition = function setCaretPosition(ctrl, start) {
37
37
  if (!ctrl) return false;
38
38
  var range = document.createRange();
39
39
  var sel = window.getSelection();