alongubkin / angular-datepicker

Angular.js Date/Time Picker
MIT License
291 stars 129 forks source link

Issue with nativeSplit #19

Open LucasRoesler opened 10 years ago

LucasRoesler commented 10 years ago

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

/*!
 * Cross-Browser Split 1.1.1
 * Copyright 2007-2012 Steven Levithan <stevenlevithan.com>
 * 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?

lukelarsen commented 10 years ago

I'm getting this as well.