Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

Commit

Permalink
Merge pull request #26 from dnasir/dev
Browse files Browse the repository at this point in the history
Bug fixes
  • Loading branch information
dnasir committed Nov 23, 2014
2 parents 5842309 + 8cc2dd7 commit 61e0481
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 13 deletions.
9 changes: 4 additions & 5 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-dateParser",
"version": "1.0.10",
"version": "1.0.11",
"homepage": "https://github.com/dnasir/angular-dateParser",
"authors": [
"Dzulqarnain Nasir"
Expand All @@ -15,11 +15,10 @@
"tests"
],
"dependencies": {
"angular": "1.0.6",
"angular-i18n": "1.0.6"
"angular": "1.x",
"angular-i18n": "1.x"
},
"devDependencies": {
"jquery": "1.8.2",
"angular-mocks": "1.0.6"
"angular-mocks": "1.x"
}
}
5 changes: 4 additions & 1 deletion dateparser.directive.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
angular.module('dateParserDirective', ['dateParser'])
angular.module('dateParser')
.directive('dateParser', ['dateFilter', '$dateParser', function(dateFilter, $dateParser) {

'use strict';

return {
restrict: 'A',
require: 'ngModel',
Expand Down
5 changes: 4 additions & 1 deletion dist/angular-dateparser.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
/*!
* angular-dateParser 1.0.10
* angular-dateParser 1.0.11
* https://github.com/dnasir/angular-dateParser
* Copyright 2014, Dzulqarnain Nasir
* Licensed under: MIT (http://www.opensource.org/licenses/MIT)
*/

(function(angular) {
angular.module("dateParser", []).factory("dateParserHelpers", [ function() {
"use strict";
var cache = {};
return {
getInteger: function(string, startPoint, minLength, maxLength) {
Expand All @@ -24,6 +25,7 @@
}
};
} ]).factory("$dateParser", [ "$locale", "dateParserHelpers", function($locale, dateParserHelpers) {
"use strict";
var datetimeFormats = $locale.DATETIME_FORMATS;
var monthNames = datetimeFormats.MONTH.concat(datetimeFormats.SHORTMONTH);
var dayNames = datetimeFormats.DAY.concat(datetimeFormats.SHORTDAY);
Expand Down Expand Up @@ -229,6 +231,7 @@
};
} ]);
angular.module("dateParser").directive("dateParser", [ "dateFilter", "$dateParser", function(dateFilter, $dateParser) {
"use strict";
return {
restrict: "A",
require: "ngModel",
Expand Down
4 changes: 2 additions & 2 deletions dist/angular-dateparser.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 61e0481

Please sign in to comment.