Skip to content

Commit

Permalink
[TASK] Recompiled coffeescript with 1.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebobo committed Feb 6, 2015
1 parent 7fc06a8 commit c28a24d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 25 deletions.
24 changes: 9 additions & 15 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,19 @@ requirejs.config({
});

requirejs(['jquery', 'prettify', 'piwik', 'smallipop'], function($) {
var currentSideMenuItem, lastSideMenuY, piwikTracker, sideMenu, sideMenuItems, sideMenuMinY;
var currentSideMenuItem, err, lastSideMenuY, piwikTracker, sideMenu, sideMenuItems, sideMenuMinY;
sideMenu = $('.side-menu');
sideMenuItems = $('a', sideMenu);
sideMenuMinY = $('.page').position().top;
lastSideMenuY = -1;
currentSideMenuItem = 0;
/* Enable prettyprint
*/

/* Enable prettyprint */
if (typeof window.prettyPrint === "function") {
window.prettyPrint();
}
/* Collapsable contentelements
*/

/* Collapsable contentelements */
$('.collapsor').click(function(e) {
var self;
e.preventDefault();
Expand All @@ -38,18 +36,16 @@ requirejs(['jquery', 'prettify', 'piwik', 'smallipop'], function($) {
return $(self.attr('href')).slideDown(300);
});
});
/* Smooth scroller for menu
*/

/* Smooth scroller for menu */
$('.scrollToId').click(function(e) {
e.preventDefault();
return $('html, body').animate({
scrollTop: $($(this).attr('href')).offset().top
}, 800, 'swing');
});
/* Smallipop creation calls
*/

/* Smallipop creation calls */
$('.smallipop').smallipop();
$('.smallipopOrange').smallipop({
theme: 'orange'
Expand Down Expand Up @@ -162,9 +158,8 @@ requirejs(['jquery', 'prettify', 'piwik', 'smallipop'], function($) {
$('#tipDontHideOnContentClick').smallipop({
hideOnPopupClick: false
});
/* Tour stuff
*/

/* Tour stuff */
$('.smallipopTour').smallipop({
theme: 'black wide',
cssAnimations: {
Expand All @@ -180,9 +175,8 @@ requirejs(['jquery', 'prettify', 'piwik', 'smallipop'], function($) {
e.preventDefault();
return $('#example2 .smallipopTour').smallipop('tour');
});
/* Animate smallipops when scrolling
*/

/* Animate smallipops when scrolling */
if ($('.wobbler').length) {
$(document).scroll(function() {
var $win, $wobblers, scrollTop, winHeight;
Expand All @@ -205,8 +199,8 @@ requirejs(['jquery', 'prettify', 'piwik', 'smallipop'], function($) {
piwikTracker = Piwik.getTracker('https://tracking.sebastianhelzle.net/piwik.php', 5);
piwikTracker.trackPageView();
return piwikTracker.enableLinkTracking();
} catch (err) {

} catch (_error) {
err = _error;
}
}
});
20 changes: 10 additions & 10 deletions tests/tests.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

/*!
Test suite for jQuery Smallipop
*/

*/
var defaultDelay, delayCall;

$('.smallipop').smallipop({
Expand All @@ -19,10 +19,10 @@ delayCall = function(delay, callback) {

defaultDelay = 1000;


/*
Test the core plugin features
*/

*/

module('core');

Expand All @@ -34,10 +34,10 @@ test('Smallipop exists', function() {
return equal(smallipop.attr('id'), 'smallipop1', 'First smallipop should have id 1');
});


/*
Test interaction with the plugins ui elements
*/

*/

module('interaction');

Expand All @@ -57,10 +57,10 @@ asyncTest('Show and hide tooltip by interaction', function() {
});
});


/*
Test direct calls to the plugins api
*/

*/

module('api');

Expand Down Expand Up @@ -96,10 +96,10 @@ asyncTest('Change tooltip content with api', function() {
});
});


/*
Test the plugins tour feature
*/

*/

module('tour');

Expand Down

0 comments on commit c28a24d

Please sign in to comment.