scratch – Diff between revs 58 and 125

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 58 Rev 125
Line 1... Line 1...
1 define( [ 1 define([
2 "../core" 2 "../core"
3 ], function( jQuery ) { 3 ], function( jQuery ) {
Line 4... Line -...
4   -  
5 "use strict"; -  
6   4  
7 // Register as a named AMD module, since jQuery can be concatenated with other 5 // Register as a named AMD module, since jQuery can be concatenated with other
8 // files that may use define, but not via a proper concatenation script that 6 // files that may use define, but not via a proper concatenation script that
9 // understands anonymous AMD modules. A named AMD is safest and most robust 7 // understands anonymous AMD modules. A named AMD is safest and most robust
10 // way to register. Lowercase jquery is used because AMD module names are 8 // way to register. Lowercase jquery is used because AMD module names are
Line 18... Line 16...
18 // https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon 16 // https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon
Line 19... Line 17...
19   17  
20 if ( typeof define === "function" && define.amd ) { 18 if ( typeof define === "function" && define.amd ) {
21 define( "jquery", [], function() { 19 define( "jquery", [], function() {
22 return jQuery; 20 return jQuery;
23 } ); 21 });
Line 24... Line 22...
24 } 22 }