Giter VIP home page Giter VIP logo

vxjs's People

Watchers

 avatar  avatar

vxjs's Issues

_.ready isn't working

What steps will reproduce the problem?
1. Try using _.ready(alert(_.id('body').innerHTML));

I would expect text, but I get nothing. Safari gives "TypeError: Null 
value".
Opera's message is clearer:
"Event thread: DOMContentLoaded
name: TypeError
message: Statement on line 7: Type mismatch (usually non-object value 
supplied where object required)
stacktrace:   Line 7 of inline#1 script in file://localhost/D:/WWW/snognik/
board.html function(){e['e'+t+f](window.event)}
"

Conclusion: the alert isn't run when dom has loaded. Or I've misunderstood 
something. Also, I fully support your work! The premise of your framework 
is exactly what I need.. :)

Original issue reported on code.google.com by hardi.kovamees on 23 Feb 2009 at 12:35

Get By Class function error

Here is the origin code from your source:

var _=_?_:{}
_.cls=_.C=function(n,d,y,k,h){y=(d?d:_.d).getElementsByTagName("*");h=[];for(k=y
.length;k--;)
_.I(n,y[k].className.split(" "))>0&&h.push(y[k]);return h}
_.index=_.I=function(v,a,i){for(i=a.length;i--&&a[i]!=v;);return i}
_.d=document

And here is there string with an error, I guess:
_.I(n,y[k].className.split(" "))>0&&h.push(y[k]);return h}

I think it should be:
_.I(n,y[k].className.split(" "))>=0&&h.push(y[k]);return h}

If there is only one element with certain className _.I returns position of the 
uccurance, i.e 0 (zero).

Original issue reported on code.google.com by [email protected] on 23 Nov 2010 at 1:01

fade() end callback not implemented

What steps will reproduce the problem?
1. _.F('out',_G('tgt'),function(){alert('test')});

What is the expected output? What do you see instead?
alert() does not fire.  

Here is the fade() function:
_.fade=_.F=function(d,h,e,f,i){d=d=='in';_.A(f?f:15,i?i:50,function(a){a=(d?0:1)
+(d?1:-1)*a;h.style.opacity=a;h.style.filter='alpha(opacity='+100*a+')'})}

The 'e' param is not accessed in the function, so it never fires.

To fix, change to:
_.fade=_.F=function(d,h,e,f,i){d=d=='in';_.A(f?f:15,i?i:50,function(a){a=(d?0:1)
+(d?1:-1)*a;h.style.opacity=a;h.style.filter='alpha(opacity='+100*a+')'},e)}

Original issue reported on code.google.com by [email protected] on 14 Jul 2010 at 4:40

Namespace Generation not working

Code from sample is not working.

var _=_?_:{}
_.ns=_.N=function(n,p,r){p=n.split('.');r=window;for(i in 
p){if(!r[p[i]])r[p[i]]={};r=r[p[i]]}return r}

_.ns('com.vxjs.beta.application.longname.library.core') = 42;
alert(com.vxjs.beta.application.longname.library.core);


Firefox says: 'invalid assignment left-hand side' on the string 
_.ns('com.vxjs.beta.application.longname.library.core') = 42;

Tryed also at Google Chrome - get same result.

Original issue reported on code.google.com by [email protected] on 22 Nov 2010 at 10:09

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.