removes jQuery as prerequisite:

- jQuery was used in two places in the code: a get() call and a click() call, both of which are unsupported by jqLite, but have workarounds.
- jQuery is still used for functional testing.
fix-space-nbsp
Christopher Hiller 11 years ago
parent 7ba9e4abcb
commit cbf28d9225

@ -0,0 +1,3 @@
{
"directory": "bower_components"
}

@ -39,6 +39,6 @@ element Y as the last element, then the behaviour of the caret is the following:
```bash
npm install
grunt build
grunt karma:e2e
bower install
grunt
```

@ -53,7 +53,7 @@ angular.module('contenteditable', [])
oldRender()
}
$element.html(ngModel.$viewValue || '')
el = $element.get(0)
el = $element[0]
range = document.createRange()
sel = window.getSelection()
if (el.childNodes.length > 0) {
@ -67,7 +67,7 @@ angular.module('contenteditable', [])
sel.addRange(range)
}
if (attrs.selectNonEditable && attrs.selectNonEditable !== "false") {
$element.click(function(e) {
$element.bind('click', function(e) {
var range, sel, target
target = e.toElement
if (target !== this && angular.element(target).attr('contenteditable') === 'false') {