BVB Source Codes

PreloadJS Show AbstractRequest.js Source code

Return Download PreloadJS: download AbstractRequest.js Source code - Download PreloadJS Source code - Type:.js
  1. /*
  2.  * AbstractRequest
  3.  * Visit http://createjs.com/ for documentation, updates and examples.
  4.  *
  5.  *
  6.  * Copyright (c) 2012 gskinner.com, inc.
  7.  *
  8.  * Permission is hereby granted, free of charge, to any person
  9.  * obtaining a copy of this software and associated documentation
  10.  * files (the "Software"), to deal in the Software without
  11.  * restriction, including without limitation the rights to use,
  12.  * copy, modify, merge, publish, distribute, sublicense, and/or sell
  13.  * copies of the Software, and to permit persons to whom the
  14.  * Software is furnished to do so, subject to the following
  15.  * conditions:
  16.  *
  17.  * The above copyright notice and this permission notice shall be
  18.  * included in all copies or substantial portions of the Software.
  19.  *
  20.  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  21.  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  22.  * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  23.  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  24.  * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  25.  * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  26.  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  27.  * OTHER DEALINGS IN THE SOFTWARE.
  28.  */
  29.  
  30. /**
  31.  * @module PreloadJS
  32.  */
  33.  
  34. // namespace:
  35. this.createjs = this.createjs || {};
  36.  
  37. (function () {
  38.         "use strict";
  39.  
  40.         /**
  41.          * A base class for actual data requests, such as {{#crossLink "XHRRequest"}}{{/crossLink}}, {{#crossLink "TagRequest"}}{{/crossLink}},
  42.          * and {{#crossLink "MediaRequest"}}{{/crossLink}}. PreloadJS loaders will typically use a data loader under the
  43.          * hood to get data.
  44.          * @class AbstractRequest
  45.          * @param {LoadItem} item
  46.          * @constructor
  47.          */
  48.         var AbstractRequest = function (item) {
  49.                 this._item = item;
  50.         };
  51.  
  52.         var p = createjs.extend(AbstractRequest, createjs.EventDispatcher);
  53.  
  54.         // public methods
  55.         /**
  56.          * Begin a load.
  57.          * @method load
  58.          */
  59.         p.load =  function() {};
  60.  
  61.         /**
  62.          * Clean up a request.
  63.          * @method destroy
  64.          */
  65.         p.destroy = function() {};
  66.  
  67.         /**
  68.          * Cancel an in-progress request.
  69.          * @method cancel
  70.          */
  71.         p.cancel = function() {};
  72.  
  73.         createjs.AbstractRequest = createjs.promote(AbstractRequest, "EventDispatcher");
  74.  
  75. }());
downloadAbstractRequest.js Source code - Download PreloadJS Source code
Related Source Codes/Software:
gotraining - Go Training Class Material : ... 2017-04-29
eigen - The Art World in Your Pocket or Your Trendy Tech C... 2017-04-29
rack-cors - Rack Middleware for handling Cross-Origin Resource... 2017-04-29
react-redux-tutorial - react-redux-tutorial in Chinese, catalog &&... 2017-04-29
swifter - Tiny http server engine written in Swift programmi... 2017-04-29
boto3 - AWS SDK for Python http://a... 2017-04-30
Fluidbox - Replicating and improving the lightbox module seen... 2017-04-30
jo - JSON output from a shell 2017-04-30
qTip2 - qTip2 - Pretty powerful tooltips ... 2017-04-30
swing - A swipeable cards interface. The swipe-left/swipe-... 2017-04-30
growth - Growth - App to help you Be Awesome Developer &... 2017-05-06
TourGuide - TourGuide is an Android library that aims to provi... 2017-05-06
urh - Universal Radio Hacker: investigate wireless proto... 2017-05-06
Gutenberg - A meaningful web typography starter kit. 2017-05-06
NiftyDialogEffects - Nifty Modal Dialog Effect 2017-05-06
opengapps - The main repository of the Open GApps Project ... 2017-05-06
The micro CMS network asked administration system (the original PHP168 S series) v20161230 - 1, upgraded the mobile version. 2, upgrade the st... 2017-05-06
The news industry marketing website HTML 5 v5.7 site source code - Dedecms latest version of kernel development and o... 2017-05-06
Dream weaving white large entrepreneurial wealth information class site template v1.0 - Dream white large entrepreneurial wealth of inform... 2017-05-06

 Back to top