Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Page Methods generate javascript without semicolons

$
0
0

The problem I am having is that IE 10 and Chrome are reporting page errors and the message is "missing semicolon".  I looked at the page source in the browser and tried all of the javascript in JsFiddle JsHint to find errors. The errors were confined to Microsoft generated code. Please look at the following code and notice that the semicolon is missing after the last curly bracket:

var PageMethods = function () {
    PageMethods.initializeBase(this);
    this._timeout = 0;
    this._userContext = null;
    this._succeeded = null;
    this._failed = null;
}

In fact there are dozens of statements like the following, every one of them without a semicolon after the last curly brace.  Here are two of many

PageMethods.set_path = function (value) {
    PageMethods._staticInstance.set_path(value);
}
PageMethods.get_path = function () {
    return PageMethods._staticInstance.get_path();
}



 


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>