GithubHelp home page GithubHelp logo

mandoo's People

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

mandoo's Issues

Change u.require to work like Python imports.

u.require would be more useful if it could "import" stuff into an object. (one could then use it to load one's own modules instead of Mandoo plugins only).

Let's start to follow some of the commonjs.org ideas -- at least apply what we can to work with front-end JS.

make .pos act relatively to other elements

Currently, commands like .pos('left center') acts only based on the whole page size. It would be better if the method could set elements positions based on other elements' size and position.

Versioning

Is there going to be a set format for tagging versions... For example, will it continue to follow the following format: x.xx?

u.Request $__common__: is not passing data and not finishing functions

line 266 or so:
req = new u.Request(url, options, data);

but u.request does not accept data.
Also the .onfinish is not the correct syntax

Fix:
options.method = method;
options.data = data;
req = new u.Request(url, options, data);
fn && req.on('finish',(fn));

Whole code block once complete:
$common: function (method, url, options, data) {
var fn, req;
if (typeof options === 'function') {
fn = options;
options = {}; }
else
if (typeof options === 'boolean') {
options = { async: options }; }
options = options || {};
options.method = method;
options.data = data;
req = new u.Request(url, options, data);
fn && req.on('finish',(fn));
return req; },

Toggle()

Toggle could use an option to allow show(force) to be used. Currently Toggle will only work with items that are not set to display: none in firefox 3.5.x

Updated Code:
toggle: function (force) {
for (var i = -1; this[++i];)
u(this[i])u(this[i]).css('display') === 'none' ? 'show' : 'hide';
return this; }

enhance DOM API class methods

clean .addClass and .rmClass. If possible, get rid of them, and do something more extensible (to handle other space-separated value attributes).

enhance .hover

today, .hover doesn't animate if there's another animation in progress on the related element, due to animation conflicts. the conflict checking is not necessary.

opacity function crashes on IE

Got a really weird error message ("Member not found") when trying to get/set opacity on created (not yet appended) elements.
tested on IE8.

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.