Skip to content

Commit 0b0cacd

Browse files
committed
exclude ignored elements from the $.fn.grid working set
1 parent ad8d9f2 commit 0b0cacd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

js/jquery.mobile.grid.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
//>>description: Applies classes for grid styling.
33
//>>label: CSS Grid Tool
44

5-
define( [ "jquery" ], function( $ ) {
5+
define( [ "jquery", "./jquery.mobile.core" ], function( $ ) {
66
//>>excludeEnd("jqmBuildExclude");
77
(function( $, undefined ) {
88

99
$.fn.grid = function( options ) {
10-
return this.each(function() {
10+
var $workingSet = $.mobile.enhanceable( this );
11+
12+
return $workingSet.each(function() {
1113

1214
var $this = $( this ),
1315
o = $.extend({

0 commit comments

Comments
 (0)