diff options
Diffstat (limited to 'src/jqLite.js')
| -rw-r--r-- | src/jqLite.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/jqLite.js b/src/jqLite.js index e5980514..f48dd3c0 100644 --- a/src/jqLite.js +++ b/src/jqLite.js @@ -175,6 +175,9 @@ function JQLite(element) { if (element instanceof JQLite) { return element; } + if (isString(element)) { + element = trim(element); + } if (!(this instanceof JQLite)) { if (isString(element) && element.charAt(0) != '<') { throw jqLiteMinErr('nosel', 'Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element'); |
