{"action":"created","issue":{"url":"https://api.github.com/repos/rajeshwarpatlolla/ionic-datepicker/issues/174","repository_url":"https://api.github.com/repos/rajeshwarpatlolla/ionic-datepicker","labels_url":"https://api.github.com/repos/rajeshwarpatlolla/ionic-datepicker/issues/174/labels{/name}","comments_url":"https://api.github.com/repos/rajeshwarpatlolla/ionic-datepicker/issues/174/comments","events_url":"https://api.github.com/repos/rajeshwarpatlolla/ionic-datepicker/issues/174/events","html_url":"https://github.com/rajeshwarpatlolla/ionic-datepicker/issues/174","id":142143339,"number":174,"title":"disabledDates not refresh","user":{"login":"kicsiKAPA","id":2419816,"avatar_url":"https://avatars.githubusercontent.com/u/2419816?v=3","gravatar_id":"","url":"https://api.github.com/users/kicsiKAPA","html_url":"https://github.com/kicsiKAPA","followers_url":"https://api.github.com/users/kicsiKAPA/followers","following_url":"https://api.github.com/users/kicsiKAPA/following{/other_user}","gists_url":"https://api.github.com/users/kicsiKAPA/gists{/gist_id}","starred_url":"https://api.github.com/users/kicsiKAPA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kicsiKAPA/subscriptions","organizations_url":"https://api.github.com/users/kicsiKAPA/orgs","repos_url":"https://api.github.com/users/kicsiKAPA/repos","events_url":"https://api.github.com/users/kicsiKAPA/events{/privacy}","received_events_url":"https://api.github.com/users/kicsiKAPA/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-03-20T09:08:00Z","updated_at":"2016-03-21T07:16:38Z","closed_at":null,"body":"Hey!\r\n\r\nIt's an awesome plugin and thank You! But in the new version has a little bug. When use ionicDatePicker.openDatePicker() function to show another picker with different disabled dates the old disabled date array still remain and just push new elements.\r\n\r\n```\r\nfunction setDisabledDates(mainObj) {\r\n        if (!mainObj.disabledDates || mainObj.disabledDates.length === 0) {\r\n          $scope.disabledDates = [];\r\n        } else {\r\n          /***** I think this could solve the problem start ******/\r\n          $scope.disabledDates = [];\r\n          /***** I think this could solve the problem end ******/\r\n          angular.forEach(mainObj.disabledDates, function (val, key) {\r\n            val = resetHMSM(new Date(val));\r\n            $scope.disabledDates.push(val.getTime());\r\n          });\r\n        }\r\n      }\r\n```\r\n\r\nOr You can put this line in function setInitialObj(ipObj) before setDisabledDates call.\r\n\r\nThank You!"},"comment":{"url":"https://api.github.com/repos/rajeshwarpatlolla/ionic-datepicker/issues/comments/199152329","html_url":"https://github.com/rajeshwarpatlolla/ionic-datepicker/issues/174#issuecomment-199152329","issue_url":"https://api.github.com/repos/rajeshwarpatlolla/ionic-datepicker/issues/174","id":199152329,"user":{"login":"kicsiKAPA","id":2419816,"avatar_url":"https://avatars.githubusercontent.com/u/2419816?v=3","gravatar_id":"","url":"https://api.github.com/users/kicsiKAPA","html_url":"https://github.com/kicsiKAPA","followers_url":"https://api.github.com/users/kicsiKAPA/followers","following_url":"https://api.github.com/users/kicsiKAPA/following{/other_user}","gists_url":"https://api.github.com/users/kicsiKAPA/gists{/gist_id}","starred_url":"https://api.github.com/users/kicsiKAPA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kicsiKAPA/subscriptions","organizations_url":"https://api.github.com/users/kicsiKAPA/orgs","repos_url":"https://api.github.com/users/kicsiKAPA/repos","events_url":"https://api.github.com/users/kicsiKAPA/events{/privacy}","received_events_url":"https://api.github.com/users/kicsiKAPA/received_events","type":"User","site_admin":false},"created_at":"2016-03-21T07:16:38Z","updated_at":"2016-03-21T07:16:38Z","body":"its only in chrome cos include MIME type. How can i include ur library correctly?\r\n\r\nChrome console error here  (in firefox and safari works fine.)\r\nRefused to execute script from 'https://raw.githubusercontent.com/rajeshwarpatlolla/ionic-datepicker/master/dist/ionic-datepicker.bundle.min.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled."}}