antimatter15 / vxjs Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/vxjs
Automatically exported from code.google.com/p/vxjs
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
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
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.