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

"ReferenceError: element is not defined" and possible bad coffee #21

Closed
egamonal opened this issue Apr 7, 2014 · 1 comment
Closed

Comments

@egamonal
Copy link
Contributor

egamonal commented Apr 7, 2014

I installed mobile-angular-ui with bower, v 1.1.0-beta.7.
I'm having trouble with iScroll and iScroll lite, with either fastclick or ngtouch.
With HTML like this:

 <div class="scrollable">
     <div class="scrollable-content">
         <p>1sdfbdfgndrtuymdv</p>
         <p>2sdfbdfgndrtuymdv</p>
         <p>3sdfbdfgndrtuymdv</p>
         <p>4sdfbdfgndrtuymdv</p>
         <p>5sdfbdfgndrtuymdv</p>
         <p>6sdfbdfgndrtuymdv</p>
         <p>7sdfbdfgndrtuymdv</p>
         <p>8sdfbdfgndrtuymdv</p>
         <p>9sdfbdfgndrtuymdv</p>
         <p>10sdfbdfgndrtuymdv</p>
     </div>
</div>

I was expecting iScroll to let me drag the mouse as shown in http://lab.cubiq.org/iscroll/examples/simple/

Firefox 29 is not throwing errors in the console. Chrome 30 showed:

ReferenceError: element is not defined
    at http://localhost:9000/bower_components/mobile-angular-ui/dist/js/mobile-angular-ui-scrollable-iscroll-lite.js:969:30
    at Object.invoke (http://localhost:9000/bower_components/angular/angular.js:3805:17)
    at http://localhost:9000/bower_components/angular/angular.js:5355:43
    at Array.forEach (native)
    at forEach (http://localhost:9000/bower_components/angular/angular.js:323:11)
    at Object.<anonymous> (http://localhost:9000/bower_components/angular/angular.js:5353:13)
    at Object.invoke (http://localhost:9000/bower_components/angular/angular.js:3805:17)
    at http://localhost:9000/bower_components/angular/angular.js:3647:37
    at Object.getService [as get] (http://localhost:9000/bower_components/angular/angular.js:3768:39)
    at addDirective (http://localhost:9000/bower_components/angular/angular.js:6402:51) 

Just in case I checked both the coffee and js iscroll files and they look wrong. they are using an unreferenced variable. I'll make a pull request in a minute showing this

egamonal added a commit to egamonal/mobile-angular-ui that referenced this issue Apr 7, 2014
mcasimir added a commit that referenced this issue Apr 18, 2014
references #21 of the original repository. a directive looks wrong
@mcasimir
Copy link
Owner

Fixed by your patch

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

2 participants