angular / batarang

AngularJS WebInspector Extension for Chrome
MIT License
2.43k stars 338 forks source link

Bug in Angular UI Bootstrap Pagination: Unexpected end of expression: selectPage(page #234

Closed warrendodsworth closed 9 years ago

warrendodsworth commented 9 years ago

While Batarang is Enabled and there is an Angular UI Bootstrap Pagination control on the page this error pops up in the console.

It does not cause the pager to behave differently in my experience though, but vanishes when Batarang is disabled.

Error: [$parse:ueoe] Unexpected end of expression: selectPage(page http://errors.angularjs.org/1.3.16/$parse/ueoe?p0=selectPage(page at REGEX_STRING_REGEXP (http://localhost:9000/bower_components/angular/angular.js:63:12) at Parser.consume (http://localhost:9000/bower_components/angular/angular.js:12151:13) at Parser.functionCall (http://localhost:9000/bower_components/angular/angular.js:12426:10) at Parser.primary (http://localhost:9000/bower_components/angular/angular.js:12098:24) at Parser.unary (http://localhost:9000/bower_components/angular/angular.js:12374:19) at Parser.multiplicative (http://localhost:9000/bower_components/angular/angular.js:12357:21) at Parser.additive (http://localhost:9000/bower_components/angular/angular.js:12348:21) at Parser.relational (http://localhost:9000/bower_components/angular/angular.js:12339:21) at Parser.equality (http://localhost:9000/bower_components/angular/angular.js:12330:21) at Parser.logicalAND (http://localhost:9000/bower_components/angular/angular.js:12321:21)

SomeKittens commented 9 years ago

Can you paste the full expression (that starts with selectPage(page)? This may be related to a few other bugs we've been having.

warrendodsworth commented 9 years ago

Hey, the template is the default from Angular UI Pagination, I havent tried it with the pager.

https://github.com/angular-ui/bootstrap/blob/master/template/pagination/pagination.html

Hope it helps. Nice plugin. Thanks.

SomeKittens commented 9 years ago

Helps a lot. This is a dupe of https://github.com/angular/angularjs-batarang/issues/230 (which we're working on). Thanks!