Sunday, 15 June 2014

angularjs - What is causing "Uncaught SyntaxError: Unexpected token finally" in angular on android browser? -


I have a hard time debugging this error. This angle is 1.3.10 It seems that the Android browser is angular Get an error in the code that is quite wired.

EDIT: The Android Browser Javascript Console says: ajax.googleapis.com/ajax/libs/angularjs/1.3.10/angular.js: 16035 Unwanted syntax error: unexpected token at the end

This is Android 2.3.3

My guess is that you are angular on Android browser 2.x (1.3.10) are running.

Finally is a reserved EncismScript 3 keyword and the following syntax is not allowed in ES3:

  $ http.get (tpl, Return to httpOptions) Lastly (function () {^^^^^^^^ // it is 16065 unmanned angular 1.3.10 handlesquinfind .totalPendingRequests--;})  

In ES3, it bracket Notation should be written with:

  return $ http.get (tpl, httpOptions) ['end'] (function () {handleRequestFn.totalPendingRequests--;})  

The same goes for the other reserved keywords as hold

Edit : Here

There is a comment about the issue fixed in 1.3.14, but it seems that this is not the case. Finally, finally property is still accessed with dot notation.


No comments:

Post a Comment