GithubHelp home page GithubHelp logo

shakakira / objs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from debuggify/objs

0.0 1.0 0.0 946 KB

A minimalistic library intended to help in using namespaces and class inheritance in JavaScript.

Home Page: http://www.tekool.net/blog/2011/03/03/objs-javascript-library-update/

License: MIT License

objs's Introduction

Description

A minimalistic library intended to help in using namespaces and class inheritance in JavaScript.

Objs enables:

  • Class declaration using namespaces
  • Access to class constructors using their namespaces
  • Simplified inheritance syntax which follow ExtJS, Prototype, Mootools conventions
  • Shortcuts to superclass and its methods
  • A complete library to help in using OOP for less than 1KB

Getting Started

License

Copyright © 2006-2012 Frederic Saunier, www.tekool.net
Objs may be freely distributed under the MIT license.

For advanced Objs developers

Build

The project was built using YUICompressor and YUIant.

Unit Tests

Unit tests are built upon YUI Test Standalone Library.

The tests run by opening the /index.html. The test runner and Unit Test
framework loads all the libraries it needs from the test/lib/ folder. They
were first built upon YUI 3.2.0 and YUITest 1.0.0 b1 standalone libraries.

Changelog

Objs v2.1.2

  • License changed to an MIT license.
  • Error message “inexistent” changed to “non-existent”
  • Two loops were needed to add class properties to its prototype, there’s now only one
  • Reduced file size but reverted some changes to increase speed vs size optimizations

Objs v2.1

  • Protobject (the object used to declare class properties and methods) is now mandatory.
  • An exception is thrown when trying to import a class which isn’t registered.
  • Redefining a class with the same classpath now replace it with the new class definition.
  • When the second parameter is a strict “null”, the associated classpath is removed from Objs and ready for GC.
  • Each class has a new $classpath parameter reflecting the classpath with which it was declared.

objs's People

Contributors

tekool avatar

Watchers

 avatar

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.