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

TypeError: f.getClientRects is not a function. (In 'f.getClientRects()', 'f.getClientRects' is undefined) #145

Open
hambern opened this issue Nov 3, 2016 · 9 comments

Comments

@hambern
Copy link

hambern commented Nov 3, 2016

I keep getting: TypeError: f.getClientRects is not a function. (In 'f.getClientRects()', 'f.getClientRects' is undefined) though I think I've tried everything. I've included both jquery and stellar.js through bower and I use them on the page:

From Bower:

"jquery.stellar": "^0.6.2",
"jquery": "^3.1.1"

The js:

$(function() {
  $.stellar();
});

The html

<div class="jumbotron stellar-background" data-stellar-background-ratio="0.5" style="background-image: url('extend/theme/front/img/bg-blur.jpg')">
    <div class="centered container">
      <div class="text-center">
        <h1>Bla bla</h1>
      </div>
    </div>
  </div>

The css

.stellar-background {
  position: relative;
  background-size: cover;
  background-attachment: fixed;
  background-position: 50% 0;
  background-repeat: no-repeat;
}
@mgsmus
Copy link

mgsmus commented Nov 4, 2016

You need jQuery Migrate 3.0
http://code.jquery.com/jquery-migrate-3.0.0.js

@samuelbsp
Copy link

samuelbsp commented Jan 12, 2017

So.. It's not working with jquery 3.0 ? Is there gonna be a fix for that ? I don't want to use jQuery Migrate just for stellar...

@mgsmus
Copy link

mgsmus commented Jan 13, 2017

I created a pull request for the fix #147

@Uranbold
Copy link

Uranbold commented Apr 6, 2017

@mgsmus Your Pull for Fix has failed?

It seems not fixed on main version.

@mgsmus
Copy link

mgsmus commented Apr 6, 2017

I don't understand that Travis-CI yet.
I did not have a chance to look at it in detail tho

@LucasSodre
Copy link

I want to run a program that uses jquery-ui-1.10.4 and have jquery 3.1.1 on my webpage, it gives the error "Uncaught TypeError: f.getClientRects is not a function". I have already tried using jquery-migrate-3.0.0.js on my page but did not change the error.

@angelotupaz
Copy link

lkjkljkl

@ahkui
Copy link

ahkui commented Jun 22, 2018

you can use this version and have pull request at #158
npm install --save stellar.js

@TemaSM
Copy link

TemaSM commented Jun 30, 2019

@markdalgleish How about to finally merge PR provided by @ahkui and give him rights to be a project collaborator?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants