aboutsummaryrefslogtreecommitdiff
path: root/engine/js/classes
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-02 16:06:53 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-02 16:06:53 +0000
commit441c9e85dcb824dba2a44657a31fa29ad71a4ee1 (patch)
treee3558477d639a95bb5a24807d2a8174c73e1ac83 /engine/js/classes
parent99b267a9fc4b023e54a9d2c8ec9bd9fe42a32e54 (diff)
downloadelgg-441c9e85dcb824dba2a44657a31fa29ad71a4ee1.tar.gz
elgg-441c9e85dcb824dba2a44657a31fa29ad71a4ee1.tar.bz2
Refs #2538: Moved js directory to elgg root.
git-svn-id: http://code.elgg.org/elgg/trunk@7189 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/js/classes')
-rw-r--r--engine/js/classes/ElggEntity.js20
-rw-r--r--engine/js/classes/ElggPriorityList.js60
-rw-r--r--engine/js/classes/ElggUser.js14
3 files changed, 0 insertions, 94 deletions
diff --git a/engine/js/classes/ElggEntity.js b/engine/js/classes/ElggEntity.js
deleted file mode 100644
index 9461a463f..000000000
--- a/engine/js/classes/ElggEntity.js
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * Create a new ElggEntity
- *
- * @class Represents an ElggEntity
- * @property {number} guid
- * @property {string} type
- * @property {string} subtype
- * @property {number} owner_guid
- * @property {number} site_guid
- * @property {number} container_guid
- * @property {number} access_id
- * @property {number} time_created
- * @property {number} time_updated
- * @property {number} last_action
- * @property {string} enabled
- *
- */
-elgg.ElggEntity = function(o) {
- $.extend(this, o);
-}; \ No newline at end of file
diff --git a/engine/js/classes/ElggPriorityList.js b/engine/js/classes/ElggPriorityList.js
deleted file mode 100644
index 521fbbb64..000000000
--- a/engine/js/classes/ElggPriorityList.js
+++ /dev/null
@@ -1,60 +0,0 @@
-elgg.ElggPriorityList = function() {
- this.length = 0;
- this.priorities_ = [];
-};
-
-elgg.ElggPriorityList.prototype.insert = function(obj, opt_priority) {
- if (opt_priority == undefined) {
- opt_priority = 500;
- }
-
- opt_priority = parseInt(opt_priority);
- if (opt_priority < 0) {
- opt_priority = 0;
- }
-
- if (this.priorities_[opt_priority] == undefined) {
- this.priorities_[opt_priority] = [];
- }
-
- this.priorities_[opt_priority].push(obj);
- this.length++;
-};
-
-elgg.ElggPriorityList.prototype.forEach = function(callback) {
- elgg.assertTypeOf('function', callback);
-
- var index = 0;
- for (var p in this.priorities_) {
- var elems = this.priorities_[p];
- for (var i in elems) {
- callback(elems[i], index);
- index++;
- }
- }
-};
-
-elgg.ElggPriorityList.prototype.every = function(callback) {
- elgg.assertTypeOf('function', callback);
-
- var index = 0;
- for (var p in this.priorities_) {
- var elems = this.priorities_[p];
- for (var i in elems) {
- if (!callback(elems[i], index)) {
- return false;
- };
- }
- }
-
- return true;
-};
-
-elgg.ElggPriorityList.prototype.remove = function(obj) {
- this.priorities_.forEach(function(elems, priority) {
- var index;
- while ((index = elems.indexOf(obj)) != -1) {
- elems.splice(index, 1);
- }
- });
-}; \ No newline at end of file
diff --git a/engine/js/classes/ElggUser.js b/engine/js/classes/ElggUser.js
deleted file mode 100644
index 8a7a8b7eb..000000000
--- a/engine/js/classes/ElggUser.js
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * Create a new ElggUser
- *
- * @param {Object} o
- * @extends ElggEntity
- * @class Represents an ElggUser
- * @property {string} name
- * @property {string} username
- */
-elgg.ElggUser = function(o) {
- elgg.ElggEntity.call(this, o);
-};
-
-elgg.inherit(elgg.ElggUser, elgg.ElggEntity); \ No newline at end of file