public/js/data-access.js in kolo-0.6.9 vs public/js/data-access.js in kolo-0.7.0

- old
+ new

@@ -414,20 +414,22 @@ this.select(); return this.editing(true); }; Model.prototype.initDateControls = function() { - return setTimeout(function() { - if (!this.requiresDatePicker()) { - return; - } - $('input.datepicker').datepicker({ - format: 'yyyy-mm-dd' - }); - return $('input.datepicker').on('changeDate', function(evt) { - return $(this).trigger('change'); - }); - }, 100); + return setTimeout((function(_this) { + return function() { + if (!_this.requiresDatePicker()) { + return; + } + $('input.datepicker').datepicker({ + format: 'yyyy-mm-dd' + }); + return $('input.datepicker').on('changeDate', function(evt) { + return $(this).trigger('change'); + }); + }; + })(this), 100); }; Model.prototype.requiresDatePicker = function() { var i; i = document.createElement('input');