jaydata
Version:
Cross-platform HTML5 data-management, JavaScript Language Query (JSLQ) support for OData, SQLite, WebSQL, IndexedDB, YQL and Facebook (packaged for Node.JS)
16 lines (15 loc) • 3.42 kB
JavaScript
// JayData 1.5.10
// Dual licensed under MIT and GPL v2
// Copyright JayStack Technologies (http://jaydata.org/licensing)
//
// JayData is a standards-based, cross-platform Javascript library and a set of
// practices to access and manipulate data from various online and offline sources.
//
// Credits:
// Hajnalka Battancs, Dániel József, János Roden, László Horváth, Péter Nochta
// Péter Zentai, Róbert Bónay, Szabolcs Czinege, Viktor Borza, Viktor Lázár,
// Zoltán Gyebrovszki, Gábor Dolla
//
// More info: http://jaydata.org
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define("jaydata/modules/deferred",["jaydata/core"],e);else{var r;r="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,r.$data=e()}}(function(){return function e(r,t,n){function o(u,i){if(!t[u]){if(!r[u]){var a="function"==typeof require&&require;if(!i&&a)return a(u,!0);if(f)return f(u,!0);var d=new Error("Cannot find module '"+u+"'");throw d.code="MODULE_NOT_FOUND",d}var l=t[u]={exports:{}};r[u][0].call(l.exports,function(e){var t=r[u][1][e];return o(t?t:e)},l,l.exports,e,r,t,n)}return t[u].exports}for(var f="function"==typeof require&&require,u=0;u<n.length;u++)o(n[u]);return o}({1:[function(e,r,t){(function(n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function f(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function u(e,r){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||"object"!=typeof r&&"function"!=typeof r?e:r}function i(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(r,t,n){return t&&e(r.prototype,t),n&&e(r,n),r}}(),d=e("jaydata/core"),l=o(d),c="undefined"!=typeof window?window.jQuery:"undefined"!=typeof n?n.jQuery:null,s=o(c),p=function(e){function r(){f(this,r);var e=u(this,Object.getPrototypeOf(r).call(this));return e.deferred=new s["default"].Deferred,e}return i(r,e),a(r,[{key:"createCallback",value:function(e){e=l["default"].PromiseHandlerBase.createCallbackSettings(e);var r=this;return{success:function(){e.success.apply(r.deferred,arguments),r.deferred.resolve.apply(r.deferred,arguments)},error:function(){Array.prototype.push.call(arguments,r.deferred),e.error.apply(r.deferred,arguments)},notify:function(){e.notify.apply(r.deferred,arguments),r.deferred.notify.apply(r.deferred,arguments)}}}},{key:"getPromise",value:function(){return this.deferred.promise()}}]),r}(l["default"].PromiseHandlerBase);l["default"].PromiseHandler=l["default"].Deferred=p,t["default"]=l["default"],r.exports=t["default"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"jaydata/core":"jaydata/core"}]},{},[1])(1)});
//# sourceMappingURL=deferred.min.js.map