Skip to content
This repository has been archived by the owner on Mar 2, 2022. It is now read-only.

Latest commit

 

History

History
96 lines (72 loc) · 2.59 KB

CHANGELOG.md

File metadata and controls

96 lines (72 loc) · 2.59 KB

0.1.6 - 30 Aug 2013

See all commits

  • Make jasmine-sinon a dev dependency in Bower config
  • Add comments about Bower and exports to AMD and CommonJS

0.1.5 - 26 Aug 2013

See all commits

  • Added to Bower. Install with bower install --save simple.js
  • Switched tests from Buster.js to Karma and Jasmine
  • Added support for CommonJS and AMD

0.1.4 - 15 May 2013

See all commits

  • Deprecated view.DOM, use view.$ instead. Think of it as a scoped jQuery selector.

0.1.3 - 15 May 2013

See all commits

  • Return the jQuery XMLHttpRequest (jqXHR) object from model.save and model.fetch. The jqXHR implements the Promise interface, so you can write the following instead of relying on events or callbacks:

    this.model.save().then(function(data, textStatus, jqXHR) {
        console.log('success!');
    });

0.1.2 - 13 May 2013

See all commits

  • Enable models to have default values specified in a defaults hash, e.g.:

    var Model = Simple.Model.extend({
      defaults: {
        name: "Kim Joar"
      }
    });
  • Removed global variable

0.1.1 - 22 June 2012

See all commits

  • Get rid of Object.create dependency.

  • Removed dependency to EventEmitter. There are no breaking changes to the event API.

  • Expose Simple.Events to make it easier to use the event library outside of Simple.js itself, e.g. for global event handling. Now events can be added to any object:

    var obj = {};
    $.extend(obj, Simple.Events)
  • URLs can now be defined using a function, not only as a variable, e.g.

    var MyModel = Simple.Model.extend({
      url: function() {
        return "/url";
      }
    });
  • Add local events to Simple.View, which means that you can now bind, unbind and trigger events on a view instance:

    var view = new Simple.View();
    view.on("test", function() { console.log("triggered!") });
    view.trigger("test"); // triggered!
    view.off("test");

0.1.0 - 14 June 2012

  • Initial release