Anyone else have this happen?
Adding kendo.all.* in my BundleConfig.cs throws a javascript error every time (only for IE browser):
Microsoft JScript runtime error: Unable to get value of the property 'msie': object is null or undefined
I'm using IE9. The debugger highlights this code inside the kendo.all.min.js file:
D=e.browser.msie&&8>parseFloat(e.browser.version)?function(e){return e.offsetTop}:function(t){return t.offsetTop-e(t).height()}
I'm using jQuery 1.9.1 and my bundleconfig class has the below code (I've put all css first, but the js files order is correct per Kendo documentation)
01.
public
class
BundleConfig
02.
{
03.
public
static
void
RegisterBundles(BundleCollection bundles)
04.
{
05.
bundles.Add(
new
StyleBundle(
"~/Content/css"
).Include(
06.
"~/Content/site.css"
));
07.
08.
bundles.Add(
new
StyleBundle(
"~/Content/themes/base/css"
).Include(
09.
"~/Content/themes/base/jquery.ui.all.css"
));
10.
11.
// Kendo CSS bundle
12.
bundles.Add(
new
StyleBundle(
"~/Content/kendo"
).Include(
13.
"~/Content/kendo.common.*"
,
14.
"~/Content/kendo.default.*"
));
15.
16.
17.
bundles.Add(
new
ScriptBundle(
"~/bundles/jquery"
).Include(
18.
"~/Scripts/jquery-{version}.js"
));
19.
20.
bundles.Add(
new
ScriptBundle(
"~/bundles/jqueryui"
).Include(
21.
"~/Scripts/jquery-ui-{version}.js"
));
22.
23.
bundles.Add(
new
ScriptBundle(
"~/bundles/jqueryval"
).Include(
24.
"~/Scripts/jquery.unobtrusive*"
,
25.
"~/Scripts/jquery.validate*"
));
26.
27.
bundles.Add(
new
ScriptBundle(
"~/bundles/modernizr"
).Include(
28.
"~/Scripts/modernizr-*"
));
29.
30.
// Kendo Script bundle
31.
bundles.Add(
new
ScriptBundle(
"~/bundles/kendo"
).Include(
32.
"~/Scripts/kendo.all.*"
,
33.
"~/Scripts/kendo.aspnetmvc.*"
));
34.
35.
// Clear all items from the ignore list to allow minified CSS and JavaScript files in debug mode
36.
bundles.IgnoreList.Clear();
37.
38.
39.
// Add back the default ignore list rules sans the ones which affect minified files and debug mode
40.
bundles.IgnoreList.Ignore(
"*.intellisense.js"
);
41.
bundles.IgnoreList.Ignore(
"*-vsdoc.js"
);
42.
bundles.IgnoreList.Ignore(
"*.debug.js"
, OptimizationMode.WhenEnabled);
43.
44.
}
45.
}