Skip to content

Commit

Permalink
Updated component to version 1.10.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Semantic-Pusher-Robot committed Feb 28, 2015
1 parent a87fa62 commit 2db63ed
Show file tree
Hide file tree
Showing 8 changed files with 64 additions and 68 deletions.
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": "1.10.2"
"version": "1.10.4"
}
47 changes: 23 additions & 24 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
* # Semantic - Sticky
/*!
* # Semantic UI 1.10.4 - Sticky
* http://github.com/semantic-org/semantic-ui/
*
*
* Copyright 2014 Contributors
* Copyright 2014 Contributorss
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
Expand Down Expand Up @@ -93,8 +93,9 @@ module.exports = function(parameters) {
$scroll
.on('scroll' + eventNamespace, module.event.scroll)
;

module.observeChanges();
if(settings.observeChanges) {
module.observeChanges();
}
module.instantiate();
},

Expand Down Expand Up @@ -127,25 +128,23 @@ module.exports = function(parameters) {
var
context = $context[0]
;
if(settings.observeChanges) {
if('MutationObserver' in window) {
observer = new MutationObserver(function(mutations) {
clearTimeout(module.timer);
module.timer = setTimeout(function() {
module.verbose('DOM tree modified, updating sticky menu');
module.refresh();
}, 200);
});
observer.observe(element, {
childList : true,
subtree : true
});
observer.observe(context, {
childList : true,
subtree : true
});
module.debug('Setting up mutation observer', observer);
}
if('MutationObserver' in window) {
observer = new MutationObserver(function(mutations) {
clearTimeout(module.timer);
module.timer = setTimeout(function() {
module.verbose('DOM tree modified, updating sticky menu');
module.refresh();
}, 20);
});
observer.observe(element, {
childList : true,
subtree : true
});
observer.observe(context, {
childList : true,
subtree : true
});
module.debug('Setting up mutation observer', observer);
}
},

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-sticky',
summary : 'Semantic UI - Sticky: Single component release',
version : '1.10.2',
version : '1.10.4',
git : 'git://github.com/Semantic-Org/UI-Sticky.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-sticky",
"version": "1.10.2",
"version": "1.10.4",
"title": "Semantic UI - Sticky",
"description": "Single component release of sticky",
"homepage": "http://www.semantic-ui.com",
Expand Down
9 changes: 4 additions & 5 deletions sticky.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* # Semantic UI - 1.10.2
* https://github.com/Semantic-Org/Semantic-UI
* http://www.semantic-ui.com/
/*!
* # Semantic UI 1.10.4 - Sticky
* http://github.com/semantic-org/semantic-ui/
*
*
* Copyright 2014 Contributors
* Released under the MIT license
Expand All @@ -10,7 +10,6 @@
*/



/*******************************
Sticky
*******************************/
Expand Down
47 changes: 23 additions & 24 deletions sticky.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
* # Semantic - Sticky
/*!
* # Semantic UI 1.10.4 - Sticky
* http://github.com/semantic-org/semantic-ui/
*
*
* Copyright 2014 Contributors
* Copyright 2014 Contributorss
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
Expand Down Expand Up @@ -91,8 +91,9 @@ $.fn.sticky = function(parameters) {
$scroll
.on('scroll' + eventNamespace, module.event.scroll)
;

module.observeChanges();
if(settings.observeChanges) {
module.observeChanges();
}
module.instantiate();
},

Expand Down Expand Up @@ -125,25 +126,23 @@ $.fn.sticky = function(parameters) {
var
context = $context[0]
;
if(settings.observeChanges) {
if('MutationObserver' in window) {
observer = new MutationObserver(function(mutations) {
clearTimeout(module.timer);
module.timer = setTimeout(function() {
module.verbose('DOM tree modified, updating sticky menu');
module.refresh();
}, 200);
});
observer.observe(element, {
childList : true,
subtree : true
});
observer.observe(context, {
childList : true,
subtree : true
});
module.debug('Setting up mutation observer', observer);
}
if('MutationObserver' in window) {
observer = new MutationObserver(function(mutations) {
clearTimeout(module.timer);
module.timer = setTimeout(function() {
module.verbose('DOM tree modified, updating sticky menu');
module.refresh();
}, 20);
});
observer.observe(element, {
childList : true,
subtree : true
});
observer.observe(context, {
childList : true,
subtree : true
});
module.debug('Setting up mutation observer', observer);
}
},

Expand Down
11 changes: 5 additions & 6 deletions sticky.min.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
/*
* # Semantic UI - 1.10.2
* https://github.com/Semantic-Org/Semantic-UI
* http://www.semantic-ui.com/
/*!
* # Semantic UI 1.10.4 - Sticky
* http://github.com/semantic-org/semantic-ui/
*
*
* Copyright 2014 Contributors
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
.ui.sticky{position:static;-webkit-transition:width .2s ease,height .2s ease,top .2s ease,bottom .2s ease;transition:width .2s ease,height .2s ease,top .2s ease,bottom .2s ease;z-index:800}.ui.sticky.bound{position:absolute;left:auto;right:auto}.ui.sticky.fixed{position:fixed;left:auto;right:auto}.ui.sticky.bound.top,.ui.sticky.fixed.top{top:0;bottom:auto}.ui.sticky.bound.bottom,.ui.sticky.fixed.bottom{top:auto;bottom:0}.ui.native.sticky{position:-webkit-sticky;position:-moz-sticky;position:-ms-sticky;position:-o-sticky;position:sticky}
*/.ui.sticky{position:static;-webkit-transition:width .2s ease,height .2s ease,top .2s ease,bottom .2s ease;transition:width .2s ease,height .2s ease,top .2s ease,bottom .2s ease;z-index:800}.ui.sticky.bound{position:absolute;left:auto;right:auto}.ui.sticky.fixed{position:fixed;left:auto;right:auto}.ui.sticky.bound.top,.ui.sticky.fixed.top{top:0;bottom:auto}.ui.sticky.bound.bottom,.ui.sticky.fixed.bottom{top:auto;bottom:0}.ui.native.sticky{position:-webkit-sticky;position:-moz-sticky;position:-ms-sticky;position:-o-sticky;position:sticky}
12 changes: 6 additions & 6 deletions sticky.min.js

Large diffs are not rendered by default.

0 comments on commit 2db63ed

Please sign in to comment.