diff options
author | Alexander Schmitz <arschmitz@gmail.com> | 2015-07-15 18:26:12 -0400 |
---|---|---|
committer | Alexander Schmitz <arschmitz@gmail.com> | 2015-08-08 00:29:35 -0400 |
commit | 3d71fb83fe02a307823594f5905be9848cfa5506 (patch) | |
tree | cbf18612e3f83a32f82b8341c789f5a0658d6bd1 /ui/version.js | |
parent | cd6c751b88313ac1fa2e0fb46d7668ca6ce0f4b1 (diff) | |
download | jquery-ui-3d71fb83fe02a307823594f5905be9848cfa5506.tar.gz jquery-ui-3d71fb83fe02a307823594f5905be9848cfa5506.zip |
Core: Move version and creation of the ui namespace into its own module
Ref #9647
Diffstat (limited to 'ui/version.js')
-rw-r--r-- | ui/version.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ui/version.js b/ui/version.js new file mode 100644 index 000000000..fdd99f79f --- /dev/null +++ b/ui/version.js @@ -0,0 +1,17 @@ +( function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define( [ "jquery" ], factory ); + } else { + + // Browser globals + factory( jQuery ); + } +} ( function( $ ) { + +$.ui = $.ui || {}; + +return $.ui.version = "@VERSION"; + +} ) ); |