Coder Social home page Coder Social logo

jquery.actual's Introduction

DreamersLab official website

jquery.actual's People

Contributors

ben-lin avatar ejn avatar fervens avatar i-like-robots avatar jacobq avatar jamesallchin avatar jtara avatar rkovalov avatar tobz-nz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jquery.actual's Issues

Add git link

Suggestion , add a link to this repo in code comments. I found the old version in packed theme plugins file and by looking at this

/*! Copyright 2012, Ben Lin (http://dreamerslab.com/)
 * Licensed under the MIT License (LICENSE.txt).
 *
 * Version: 1.0.17
 *
 * Requires: jQuery >= 1.2.3
 */

I have no idea what the plugin is ( the method actual is ambiguous ) since the file was compiled about year ago and you have many repos.

this would be preferred

/*! Copyright 2012, Ben Lin (http://dreamerslab.com/)
 * Licensed under the MIT License (LICENSE.txt).
 * https://github.com/dreamerslab/jquery.actual
 * Version: 1.0.18
 *
 * Requires: jQuery >= 1.2.3
 */

Local variable "style" not initialized

Hi, I haven't tested this, but looking at your code, inside the else-branch, there is:

var ..., style;

fix = function (){
    // ...
    style += 'visibility: hidden !important; display: block !important; ';

This should result in style beeing 'undefinedvisibility: hidden ...' which is ruins the visibility-attribute - I guess that's not what you wanted.

Inverted code lines

I bet there is a mistake on the latest release.
Lines 60-61 should go prior line 59 ($this.css( css );)

btw, the plugin seems to still be useful if using jQuery Mobile, even with jQuery 1.7.2.
childs of hidden elements (display:none) return height/width = 0 using the default height()/width() function

Support native jquery-1.9

Looks like the parts that need to change are as follows:

  • jQuery.fn.andSelf() needs to change to jQuery.fn.addBack()
  • The demo depends on jQuery.browser, which is no longer supported / available, so this functionality could either depend on jquery-migrate, another library, or some native code. Since it just needs to check if the user agent is MSIE with major version < 7, perhaps it would be acceptable to perform this check natively?

Perhaps

  if( $.browser.msie && $.browser.version < 7 ){

could become

  if( typeof navigator.appName === "string" &&
        navigator.appName === "Microsoft Internet Explorer" &&
        parseFloat(navigator.userAgent.replace(new RegExp(".*MSIE\\D*(\\d+.\\d+).*"), "$1")) < 7
  ){

See http://msdn.microsoft.com/en-us/library/ms537509(v=vs.85).aspx

No access to properties

So i need to get the scrollHeight of a hidden element. But this isn't a function so it breaks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.