Skip to content

Commit da55def

Browse files
committed
bugfix: logging for plugins
was missing brackets in console detection
1 parent d47df7b commit da55def

5 files changed

+4
-5
lines changed

dev/src/plugins/animation.gsap.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
var NAMESPACE = "animation.gsap";
2323

2424
// (BUILD) - REMOVE IN MINIFY - START
25-
var err = Function.prototype.bind.call((console && console.error || console.log) || function() {}, console);
25+
var err = Function.prototype.bind.call((console && (console.error || console.log)) || function() {}, console);
2626
if (!ScrollMagic) {
2727
err("(" + NAMESPACE + ") -> ERROR: The ScrollMagic main module could not be found. Please make sure it's loaded before this plugin or use an asynchronous loader like requirejs.");
2828
}

dev/src/plugins/animation.velocity.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
var NAMESPACE = "animation.velocity";
2323

2424
// (BUILD) - REMOVE IN MINIFY - START
25-
var err = Function.prototype.bind.call((console && console.error || console.log) || function() {}, console);
25+
var err = Function.prototype.bind.call((console && (console.error || console.log)) || function() {}, console);
2626
if (!ScrollMagic) {
2727
err("(" + NAMESPACE + ") -> ERROR: The ScrollMagic main module could not be found. Please make sure it's loaded before this plugin or use an asynchronous loader like requirejs.");
2828
}

dev/src/plugins/debug.addIndicators.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
var NAMESPACE = "debug.addIndicators";
1919

2020
// (BUILD) - REMOVE IN MINIFY - START
21-
var err = Function.prototype.bind.call((console && console.error || console.log) || function() {}, console);
21+
var err = Function.prototype.bind.call((console && (console.error || console.log)) || function() {}, console);
2222
if (!ScrollMagic) {
2323
err("(" + NAMESPACE + ") -> ERROR: The ScrollMagic main module could not be found. Please make sure it's loaded before this plugin or use an asynchronous loader like requirejs.");
2424
}

dev/src/plugins/jquery.ScrollMagic.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
var NAMESPACE = "jquery.ScrollMagic";
2222

2323
// (BUILD) - REMOVE IN MINIFY - START
24-
var err = Function.prototype.bind.call((console && console.error || console.log) || function() {}, console);
24+
var err = Function.prototype.bind.call((console && (console.error || console.log)) || function() {}, console);
2525
if (!ScrollMagic) {
2626
err("(" + NAMESPACE + ") -> ERROR: The ScrollMagic main module could not be found. Please make sure it's loaded before this plugin or use an asynchronous loader like requirejs.");
2727
}

dev/todo.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Source
22
- feature: add mobile plugin for controller
3-
- prepare stubs
43

54
# Build (gulpfile.js)
65
-

0 commit comments

Comments
 (0)