alongubkin / alongubkin/angular-datepicker

Issue with nativeSplit

未关闭
#19 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
290
派生
126
PR 合并指标
30 天内没有已合并 PR

描述

I am getting the following error in my console when I try to add anguler-datepicker to my project:

```
Uncaught RangeError: Maximum call stack size exceeded
```

and it then points to `VM877 legacy.js:84`

Which contains

``` js
/*!
* Cross-Browser Split 1.1.1
* Copyright 2007-2012 Steven Levithan
* Available under the MIT License
* http://blog.stevenlevithan.com/archives/cross-browser-split
*/
var nativeSplit = String.prototype.split, compliantExecNpcg = /()??/.exec('')[1] === undefined
String.prototype.split = function(separator, limit) {
var str = this
if (Object.prototype.toString.call(separator) !== '[object RegExp]') {
return nativeSplit.call(str, separator, limit) // line 84
}
```

Any suggestions on what is wrong here?

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。