2.0.0 (2017-01-10)

created
, updated

Release Information

Scripts can now be loaded and injected dynamically into the document, when they are requested for usage. This update also removes mootols from its dependency, so no JavaScript Framework is required.

Features

  • request: update requests to promises (cf8a217)
  • methods:
    • isArray: indicate whether a variable is an array
    • isPromise: indicate whether a variable is a promise
    • getVersion: return the current version
    • getJS: return a promise with a JavaScript file request
    • getJSON: return a promise with JSON file request
    • getScripts: return a promise, which perfoms a sequence load on script url from first to last elemnt. after the files has been loaded the script can be initialized with an optional callback function fn
    • getScriptCollection: return a promise, which performs a sequence load for each scripts property
    • insertScript: insert a script element before body ends

Breaking Changes

  • standalone: manic is no longer dependent on mootools