diff --git a/ajax/libs/joopl/2.3.0/joopl.min.js b/ajax/libs/joopl/2.3.0/joopl.min.js new file mode 100644 index 000000000..3549d4eac --- /dev/null +++ b/ajax/libs/joopl/2.3.0/joopl.min.js @@ -0,0 +1 @@ +"use strict";var $namespace=null,$def=null,$interfacedef=null,$implements=null,$global={},$enumdef=null;(function(n){var i="2.3.0",t={isSystemReservedName:function(n){switch(n.toLowerCase()){case"$ctor":case"$bctor":case"$global":case"$def":case"$interfacedef":case"$new":case"$namespace":case"$extends":case"$implements":case"$_":case"joopl":case"typeKind":case"$metadata":return!0;default:return!1}},createPropertyFromDescriptor:function(n,t,i,r){r&&(i.get&&(i.get=i.get.bind(r)),i.set&&(i.set=i.set.bind(r))),Object.defineProperty(r?r:n.prototype,t,i)},createProperty:function(t,i,r,u,f){f==n&&(f=!1),t.prototype.hasOwnProperty(i)||(r&&u?Object.defineProperty(t.prototype,i,{get:r,set:u,configurable:!f,enumerable:!0}):r?Object.defineProperty(t.prototype,i,{get:r,configurable:!f,enumerable:!0}):u&&Object.defineProperty(t.prototype,i,{set:u,configurable:!f,enumerable:!0}))},createEvent:function(n,t){if(n.hasOwnProperty(t))throw Error("The source object has already defined an event called '"+t+"'");var i=new $global.joopl.EventManager({source:n});Object.defineProperty(n,t,{get:function(){return i[t]},set:function(n){i[t]=n},configurable:!1,enumerable:!0}),i.register(t)},buildObject:function(t,i,r){return typeof t.$base=="function"?(t.$base=new t.$base(i,!1),t.$_=t.$base.$_):t.$_={},r&&t.$ctor.call(t,i),t.$base!=null&&t.$base!=n&&t.$base.$base!=null&&t.$base.$base!=n&&(t.$_.$base=t.$base.$base),t.$_.$derived=t,t},buildInheritance:function(n,t){var u,r,i;if(t!=null){for(u in t.prototype.$_)n.prototype.$_[u]||(n.prototype.$_[u]=t.prototype.$_[u]);r=null;for(i in t.prototype)r=Object.getOwnPropertyDescriptor(t.prototype,i),r?typeof r.value=="function"?n.prototype[i]=t.prototype[i]:this.createPropertyFromDescriptor(n,i,r):typeof t.prototype[i]=="function"&&(n.prototype[i]=t.prototype[i])}return t?t.prototype:null},hasValue:function(t){return t!==n&&t!=null},isFunction:function(n){return typeof n=="function"}};Object.freeze(t),$namespace={register:function(n,t){for(var f=typeof n=="string"?n.split("."):null,i=$global,r=null,u=0;u0}s?Object.defineProperty(r,"type",{configurable:!1,enumerable:!0,value:new $global.joopl.Type({attributes:i.$attributes})}):Object.defineProperty(r,"type",{configurable:!1,enumerable:!0,value:new $global.joopl.Type({attributes:[]})})}return r},Object.freeze($def),$namespace.register("joopl",function(){var n=this,r;this.Object=function(){},this.Object.prototype={get joopl(){return i},get typeKind(){return"class"},isTypeOf:function(n){var t=this,i=!1;if(this instanceof n)i=!0;else while(!i&&t.$base)(i=t.$base instanceof n)||(t=t.$base);return i}},this.Type=$def({$constructor:function(n){this.$_.attributes=n.attributes},$members:{get attributes(){return this.$_.attributes},getAttribute:function(n){for(var i=!1,t=0;!i&&t-1)return t[i];throw new n.ArgumentException({argName:"valueName",reason:"Given value name could not be found as value of the given enumeration type"});}}})),$enumdef=function(t){var i,e,u,f;if(typeof t!="object")throw new n.ArgumentException({argName:"enumDef",reason:"No definition for the enumeration given"});i=function(){},i.prototype=new n.Object,e=[];for(u in t){if(typeof t[u]!="number")throw new n.ArgumentException({argName:"enumDef",reason:"An enumeration definition must contain numeric properties only"});f=new Number(t[u]),f.enum=new r({value:f}),Object.defineProperty(i,u,{value:f,configurable:!1,enumerable:!0}),e.push(u)}return Object.defineProperty(i,"valueNames",{value:e,configurable:!1,enumerable:!1}),Object.freeze(i),i},Object.freeze($enumdef),this.EventManager=$def({$constructor:function(n){this.$_.source=n.source},$members:{get source(){return this.$_.source},raiseHandlers:function(n,t,i,r){var u=null,f=null,e,o;for(e in t){u=t[e],f=typeof u;switch(f){case"function":u.bind(r?r:n)(i?i:null);break;case"object":o=u.handler,o.bind(u.context?u.context:r?r:n)(i?i.args:null)}}},register:function(n){var t=[],i=this,r=this.source;Object.defineProperty(this,n,{get:function(){return function(n,r){return i.raiseHandlers(this,t,n,r)}},set:function(n){var i=t.indexOf(n);i==-1?t.push(n):t.splice(i,1)},configurable:!1,enumerable:!1})}}}),this.Exception=$def({$constructor:function(n){this.$_.message=n.message,this.$_.innerException=n.innerException},$members:{get message(){return this.$_.message},get innerException(){return this.$_.innerException},toString:function(){return this.message}}}),this.ArgumentException=$def({$extends:this.Exception,$constructor:function(n){this.$_.argName=n.argName;var t="The given argument '"+n.argName+"' is not valid";n.reason&&(t+=" (Reason: "+n.reason+")"),this.$base.$ctor({message:t})},$members:{get argName(){return this.$_.argName}}}),this.NotImplementedException=$def({$extends:this.Exception,$constructor:function(n){this.$base.$ctor({message:!t.hasValue(n)||!t.hasValue(n.memberName)?"A method or property is not implemented":"Method or property '"+n.memberName+"' is not implemented"}),this.$_.memberName=n.memberName},$members:{get memberName(){return this.$_.memberName}}})})})(undefined) \ No newline at end of file diff --git a/ajax/libs/joopl/package.json b/ajax/libs/joopl/package.json index 78327d55b..e8d4fee0a 100644 --- a/ajax/libs/joopl/package.json +++ b/ajax/libs/joopl/package.json @@ -1,7 +1,7 @@ { "name": "joopl", "filename": "joopl.min.js", - "version": "2.2.0", + "version": "2.3.0", "description": "Object-oriented programming for JavaScript on the Web and anywhere!", "homepage": "http://mfidemraizer.github.io/joopl", "keywords": ["joopl", "oop", "object-oriented"],