Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/loadcss/rails/version.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module LoadCSS
module Rails
VERSION = '0.2.2'
LOADCSS_VERSION = '0.2.2'
VERSION = '0.2.4'
LOADCSS_VERSION = '0.2.4'
end
end
9 changes: 6 additions & 3 deletions vendor/assets/javascripts/loadCSS.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Licensed MIT
(function(w){
"use strict";
/* exported loadCSS */
w.loadCSS = function( href, before, media ){
var loadCSS = function( href, before, media ){
// Arguments explained:
// `href` [REQUIRED] is the URL for your CSS file.
// `before` [OPTIONAL] is the element the script should use as a reference for injecting our stylesheet <link> before
Expand Down Expand Up @@ -56,6 +56,9 @@ Licensed MIT
};
// commonjs
if( typeof module !== "undefined" ){
module.exports = w.loadCSS;
module.exports = loadCSS;
}
}(this));
else {
w.loadCSS = loadCSS;
}
}( typeof global !== "undefined" ? global : this ));