diff --git a/bower.json b/bower.json index bc3aaf6..c282db2 100644 --- a/bower.json +++ b/bower.json @@ -16,7 +16,7 @@ "dependencies": { "angular": ">= 1.2", "angular-bindonce": "*", - "moment": "~2.6.0", + "moment": ">= 2.6.0", "moment-range": "~1.0.1" }, "license": "MIT", diff --git a/build/angular-mighty-datepicker.js b/build/angular-mighty-datepicker.js index 0aefaf2..503c00e 100644 --- a/build/angular-mighty-datepicker.js +++ b/build/angular-mighty-datepicker.js @@ -1,7 +1,7 @@ (function() { - angular.module("mightyDatepicker", ['pasvaz.bindonce']); + var mightyDatepicker; - angular.module("mightyDatepicker").directive("mightyDatepicker", ['$compile', function($compile) { + mightyDatepicker = function($compile) { var options, pickerTemplate; pickerTemplate = "
\n \n
\n
\n \n \n \n \n \n \n
\n
\n
\n
\n
\n \n
\n
\n
\n
\n \n
"; options = { @@ -271,6 +271,10 @@ }); } }; - }); + }; + + mightyDatepicker.$inject = ['$compile']; + + angular.module("mightyDatepicker", ['pasvaz.bindonce']).directive("mightyDatepicker", mightyDatepicker); }).call(this); diff --git a/src/angular-mighty-datepicker.coffee b/src/angular-mighty-datepicker.coffee index bd26592..2209901 100644 --- a/src/angular-mighty-datepicker.coffee +++ b/src/angular-mighty-datepicker.coffee @@ -1,6 +1,4 @@ -angular.module "mightyDatepicker", ['pasvaz.bindonce'] - -angular.module("mightyDatepicker").directive "mightyDatepicker", ($compile) -> +mightyDatepicker = ($compile) -> pickerTemplate = """