Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for jQuery 3.x too #100

Merged
merged 2 commits into from
Aug 17, 2017
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
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ install:
- npm install
- npm install -g bower grunt-cli
before_script:
- sed s#"2.1.3 - 3.99"#"^2.1.3"#g -i bower.json
- bower install
script:
- grunt build --verbose
- grunt build --verbose
- sed s#"\^2.1.3"#"^3"#g -i bower.json
- bower install
- grunt test --verbose
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"homepage": "dsmorse.github.io/gridster.js/",
"version": "0.7.0",
"dependencies": {
"jquery": "^2.1.3"
"jquery": "2.1.3 - 3.99"
},
"devDependencies": {
"requirejs": "^2.1.17",
Expand Down
2 changes: 1 addition & 1 deletion src/jquery.gridster.js
Original file line number Diff line number Diff line change
Expand Up @@ -4122,7 +4122,7 @@
};

fn.get_num_widgets = function () {
return this.$widgets.size();
return this.$widgets.length;
};

/**
Expand Down