Skip to content

Commit

Permalink
Updated component to version 2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Semantic-Pusher-Robot committed Jun 26, 2016
1 parent 19843c0 commit e631650
Show file tree
Hide file tree
Showing 9 changed files with 62 additions and 29 deletions.
6 changes: 5 additions & 1 deletion RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### Version 2.2.0 - June 26, 2016

- **Image** - `transition hidden image` now shows correctly as `visibility: hidden;` and not `display: none`. This will allow `offset` with `visibility` and `sticky` to work more seamlessly. `hidden image` will still remain `display: none;`

### Version 2.1.7 - Dec 19, 2015

- **Transition** - Fixes `noAnimation` error to more reasonably announce that the element is "not in the DOM" [#3040](https://github.com/Semantic-Org/Semantic-UI/issues/3040)
Expand Down Expand Up @@ -155,7 +159,7 @@
### Version 0.7.0 - Oct 22, 2013

- **Transition** - onShow and onHide callbacks for visibility changing transitions
- **Shape** - Transition duration can now be set programatically
- **Shape** - Transition duration can now be set programmatically

### Version 0.3.4 - Oct 2, 2013

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
"framework"
],
"license": "MIT",
"version": "2.1.7"
"version": "2.2.0"
}
34 changes: 25 additions & 9 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
/*!
* # Semantic UI 2.1.7 - Transition
* # Semantic UI 2.2.0 - Transition
* http://github.com/semantic-org/semantic-ui/
*
*
* Copyright 2015 Contributors
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/

;(function ( $, window, document, undefined ) {
;(function ($, window, document, undefined) {

"use strict";

window = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
;

var _module = module;
module.exports = function() {
var
Expand Down Expand Up @@ -829,7 +835,12 @@ module.exports = function() {
$.extend(true, settings, name);
}
else if(value !== undefined) {
settings[name] = value;
if($.isPlainObject(settings[name])) {
$.extend(true, settings[name], value);
}
else {
settings[name] = value;
}
}
else {
return settings[name];
Expand All @@ -847,7 +858,7 @@ module.exports = function() {
}
},
debug: function() {
if(settings.debug) {
if(!settings.silent && settings.debug) {
if(settings.performance) {
module.performance.log(arguments);
}
Expand All @@ -858,7 +869,7 @@ module.exports = function() {
}
},
verbose: function() {
if(settings.verbose && settings.debug) {
if(!settings.silent && settings.verbose && settings.debug) {
if(settings.performance) {
module.performance.log(arguments);
}
Expand All @@ -869,8 +880,10 @@ module.exports = function() {
}
},
error: function() {
module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
module.error.apply(console, arguments);
if(!settings.silent) {
module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
module.error.apply(console, arguments);
}
},
performance: {
log: function(message) {
Expand Down Expand Up @@ -1002,6 +1015,9 @@ _module.exports.settings = {
// module info
name : 'Transition',

// hide all output from this component regardless of other settings
silent : false,

// debug content outputted to console
debug : false,

Expand Down Expand Up @@ -1063,7 +1079,7 @@ _module.exports.settings = {

// possible errors
error: {
noAnimation : 'Element is no longer attached to DOM. Unable to animate.',
noAnimation : 'Element is no longer attached to DOM. Unable to animate. Use silent setting to surpress this warning in production.',
repeated : 'That animation is already occurring, cancelling repeated animation',
method : 'The method you called is not defined',
support : 'This browser does not support CSS animations'
Expand Down
2 changes: 1 addition & 1 deletion package.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Package.describe({
name : 'semantic:ui-transition',
summary : 'Semantic UI - Transition: Single component release',
version : '2.1.7',
version : '2.2.0',
git : 'git://github.com/Semantic-Org/UI-Transition.git',
});

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "semantic-ui-transition",
"version": "2.1.7",
"version": "2.2.0",
"title": "Semantic UI - Transition",
"description": "Single component release of transition",
"homepage": "http://www.semantic-ui.com",
Expand Down
3 changes: 1 addition & 2 deletions transition.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/*!
* # Semantic UI 2.1.7 - Transition
* # Semantic UI 2.2.0 - Transition
* http://github.com/semantic-org/semantic-ui/
*
*
* Copyright 2015 Contributors
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
Expand Down
34 changes: 25 additions & 9 deletions transition.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
/*!
* # Semantic UI 2.1.7 - Transition
* # Semantic UI 2.2.0 - Transition
* http://github.com/semantic-org/semantic-ui/
*
*
* Copyright 2015 Contributors
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/

;(function ( $, window, document, undefined ) {
;(function ($, window, document, undefined) {

"use strict";

window = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
;

$.fn.transition = function() {
var
$allModules = $(this),
Expand Down Expand Up @@ -828,7 +834,12 @@ $.fn.transition = function() {
$.extend(true, settings, name);
}
else if(value !== undefined) {
settings[name] = value;
if($.isPlainObject(settings[name])) {
$.extend(true, settings[name], value);
}
else {
settings[name] = value;
}
}
else {
return settings[name];
Expand All @@ -846,7 +857,7 @@ $.fn.transition = function() {
}
},
debug: function() {
if(settings.debug) {
if(!settings.silent && settings.debug) {
if(settings.performance) {
module.performance.log(arguments);
}
Expand All @@ -857,7 +868,7 @@ $.fn.transition = function() {
}
},
verbose: function() {
if(settings.verbose && settings.debug) {
if(!settings.silent && settings.verbose && settings.debug) {
if(settings.performance) {
module.performance.log(arguments);
}
Expand All @@ -868,8 +879,10 @@ $.fn.transition = function() {
}
},
error: function() {
module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
module.error.apply(console, arguments);
if(!settings.silent) {
module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
module.error.apply(console, arguments);
}
},
performance: {
log: function(message) {
Expand Down Expand Up @@ -1001,6 +1014,9 @@ $.fn.transition.settings = {
// module info
name : 'Transition',

// hide all output from this component regardless of other settings
silent : false,

// debug content outputted to console
debug : false,

Expand Down Expand Up @@ -1062,7 +1078,7 @@ $.fn.transition.settings = {

// possible errors
error: {
noAnimation : 'Element is no longer attached to DOM. Unable to animate.',
noAnimation : 'Element is no longer attached to DOM. Unable to animate. Use silent setting to surpress this warning in production.',
repeated : 'That animation is already occurring, cancelling repeated animation',
method : 'The method you called is not defined',
support : 'This browser does not support CSS animations'
Expand Down
3 changes: 1 addition & 2 deletions transition.min.css

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

Loading

0 comments on commit e631650

Please sign in to comment.