Skip to content

Commit

Permalink
fix event namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Eonasdan committed Mar 4, 2018
1 parent b77700e commit 7b6b072
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 17 deletions.
4 changes: 2 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ module.exports = function (grunt) {
grunt.task.run([
'bump_version:' + version,
'build:travis',
'docs',
'nugetpack'
'docs'//,
//'nugetpack'
]);
});
};
11 changes: 5 additions & 6 deletions build/js/tempusdominus-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
var DateTimePicker = function ($, moment) {
// ReSharper disable InconsistentNaming
var NAME = 'datetimepicker',
VERSION = '5.0.0-alpha12',
VERSION = '5.0.0-alpha15',
DATA_KEY = '' + NAME,
EVENT_KEY = '.' + DATA_KEY,
EMIT_EVENT_KEY = DATA_KEY + '.',
DATA_API_KEY = '.data-api',
Selector = {
DATA_TOGGLE: '[data-toggle="' + DATA_KEY + '"]'
Expand All @@ -25,10 +24,10 @@ var DateTimePicker = function ($, moment) {
FOCUS: 'focus' + EVENT_KEY,
CLICK_DATA_API: 'click' + EVENT_KEY + DATA_API_KEY,
//emitted
UPDATE: EMIT_EVENT_KEY + 'update',
ERROR: EMIT_EVENT_KEY + 'error',
HIDE: EMIT_EVENT_KEY + 'hide',
SHOW: EMIT_EVENT_KEY + 'show'
UPDATE: 'update' + EVENT_KEY,
ERROR: 'error' + EVENT_KEY,
HIDE: 'hide' + EVENT_KEY,
SHOW: 'show' + EVENT_KEY
},
DatePickerModes = [{
CLASS_NAME: 'days',
Expand Down
2 changes: 1 addition & 1 deletion build/js/tempusdominus-core.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tempusdominus/core",
"type": "component",
"version": "5.0.0-alpha14",
"version": "5.0.0-alpha15",
"description": "Tempus Dominus core",
"keywords": [
"bootstrap",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"type": "git",
"url": "https://github.com/tempusdominus/core.git"
},
"version": "5.0.0-alpha14",
"version": "5.0.0-alpha15",
"files": [
"build",
"src/js/**/*.js",
Expand Down
11 changes: 5 additions & 6 deletions src/js/tempusdominus-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ import moment from 'moment';
const DateTimePicker = (($, moment) => {
// ReSharper disable InconsistentNaming
const NAME = 'datetimepicker',
VERSION = '5.0.0-alpha12',
VERSION = '5.0.0-alpha15',
DATA_KEY = `${NAME}`,
EVENT_KEY = `.${DATA_KEY}`,
EMIT_EVENT_KEY = `${DATA_KEY}.`,
DATA_API_KEY = '.data-api',
Selector = {
DATA_TOGGLE: `[data-toggle="${DATA_KEY}"]`
Expand All @@ -24,10 +23,10 @@ const DateTimePicker = (($, moment) => {
FOCUS: `focus${EVENT_KEY}`,
CLICK_DATA_API: `click${EVENT_KEY}${DATA_API_KEY}`,
//emitted
UPDATE: `${EMIT_EVENT_KEY}update`,
ERROR: `${EMIT_EVENT_KEY}error`,
HIDE: `${EMIT_EVENT_KEY}hide`,
SHOW: `${EMIT_EVENT_KEY}show`
UPDATE: `update${EVENT_KEY}`,
ERROR: `error${EVENT_KEY}`,
HIDE: `hide${EVENT_KEY}`,
SHOW: `show${EVENT_KEY}`
},
DatePickerModes = [{
CLASS_NAME: 'days',
Expand Down

0 comments on commit 7b6b072

Please sign in to comment.