was.js – Diff between revs 22 and 23

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 22 Rev 23
Line 29... Line 29...
29 // Vanilla ES6 JavaScript 29 // Vanilla ES6 JavaScript
30 if (!Array.prototype.switch) { 30 if (!Array.prototype.switch) {
31 Array.prototype.switch = wasSwitch; 31 Array.prototype.switch = wasSwitch;
32 } 32 }
33 // jQuery 33 // jQuery
-   34 if(typeof jQuery === 'function') {
34 $.extend({ 35 $.extend({
35 switch: wasSwitch 36 switch: wasSwitch
-   37 });
36 }); 38 }
37 // Node.JS 39 // Node.JS
38 module.exports = { 40 module.exports = {
39 switch: wasSwitch 41 switch: wasSwitch
40 }; 42 };