Sha256: 60b0266fe445db7b2a59f906ddad18097975c03625609b2857926341066c8d54

Contents?: true

Size: 855 Bytes

Versions: 25

Compression:

Stored size: 855 Bytes

Contents

;(function(){

window.patch_date = function patch(f){
    var NativeDate = window.Date;
    var date = function date(y,m,d,h,i,s,j){
        switch(arguments.length){
            case 0: return date.now ? new NativeDate(date.now) : new NativeDate();
            case 1: return new NativeDate(y);
            case 2: return new NativeDate(y,m);
            case 3: return new NativeDate(y,m,d);
            case 4: return new NativeDate(y,m,d,h);
            case 5: return new NativeDate(y,m,d,h,i);
            case 6: return new NativeDate(y,m,d,h,i,s);
            case 7: return new NativeDate(y,y,m,d,h,i,s,j);
        }
    };
    date.UTC = NativeDate.UTC;
    return function(){
        Array.prototype.push.call(arguments, date);
        window.Date = date;
        res = f.apply(this, arguments);
        window.Date = NativeDate;
    }
}

}());

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
rearview-1.2.3-jruby public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/mock.js
rearview-1.2.2.rc.2-jruby public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/mock.js
rearview-1.2.2.rc.1-jruby public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/mock.js
rearview-1.2.1-jruby public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/mock.js
rearview-1.2.0-jruby public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/mock.js
rearview-1.1.2-jruby public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/mock.js
rearview-1.1.1-jruby public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/mock.js
rearview-1.1.0-jruby public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/mock.js
rearview-1.0.3.rc.4-jruby public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/mock.js
rearview-1.0.3.rc.3-jruby public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/mock.js
rearview-1.0.3.rc.2-jruby public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/mock.js
rearview-1.0.3.rc.1-jruby public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/mock.js
rearview-1.0.2-jruby public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/mock.js
rearview-1.0.2.rc.4-jruby public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/mock.js
rearview-1.0.2.rc.3-jruby public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/mock.js
rearview-1.0.2.rc.2-jruby public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/mock.js
rearview-1.0.2.rc.1-jruby public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/mock.js
rearview-1.0.1-jruby public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/mock.js
rearview-1.0.0-jruby public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/mock.js
rearview-1.0.0.rc5-jruby public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/mock.js