Browse files

Parameterize closures to protect the $ alias for jQuery

  • Loading branch information...
1 parent c964fcc commit 502f9f7b255e8813fc55afee777f53e739dc03cc @rschmertz rschmertz committed with mleibman Apr 26, 2010
Showing with 10 additions and 11 deletions.
  1. +2 −2 slick.columnpicker.js
  2. +2 −2 slick.grid.js
  3. +2 −2 slick.model.js
  4. +2 −3 slick.pager.js
  5. +2 −2 slick.remotemodel.js
View
4 slick.columnpicker.js
@@ -1,4 +1,4 @@
-(function() {
+(function($) {
function SlickColumnPicker(columns,grid)
{
var $menu;
@@ -97,4 +97,4 @@
// Slick.Controls.ColumnPicker
$.extend(true, window, { Slick: { Controls: { ColumnPicker: SlickColumnPicker }}});
-})();
+})(jQuery);
View
4 slick.grid.js
@@ -105,7 +105,7 @@ if (!jQuery.fn.drag) {
throw new Error("SlickGrid requires jquery.event.drag module to be loaded");
}
-(function() {
+(function($) {
var scrollbarDimensions; // shared across all grids on this page
@@ -1966,4 +1966,4 @@ if (!jQuery.fn.drag) {
GlobalEditorLock: new EditorLock()
}
});
-}());
+}(jQuery));
View
4 slick.model.js
@@ -18,7 +18,7 @@ function EventHelper() {
}
-(function() {
+(function($) {
/***
* A sample Model implementation.
* Provides a filtered view of the underlying data.
@@ -272,4 +272,4 @@ function EventHelper() {
// Slick.Data.DataView
$.extend(true, window, { Slick: { Data: { DataView: DataView }}});
-})();
+})(jQuery);
View
5 slick.pager.js
@@ -1,4 +1,4 @@
-(function() {
+(function($) {
function SlickGridPager(dataView, grid, $container)
{
var $status, $contextMenu;
@@ -143,5 +143,4 @@
// Slick.Controls.Pager
$.extend(true, window, { Slick: { Controls: { Pager: SlickGridPager }}});
-})();
-
+})(jQuery);
View
4 slick.remotemodel.js
@@ -18,7 +18,7 @@ function EventHelper() {
}
-(function() {
+(function($) {
/***
* A sample AJAX data store implementation.
* Right now, it's hooked up to load all Apple-related Digg stories, but can
@@ -183,4 +183,4 @@ function EventHelper() {
// Slick.Data.RemoteModel
$.extend(true, window, { Slick: { Data: { RemoteModel: RemoteModel }}});
-})();
+})(jQuery);

0 comments on commit 502f9f7

Please sign in to comment.