Skip to content

Commit 41d2edf

Browse files
committed
Version 2.0.2
Moved deprecated method definitions into constructor so that they actually work
1 parent e6399fa commit 41d2edf

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

javascripts/database-enyo.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ license: MIT license <http://www.opensource.org/licenses/mit-license.php>
1010
authors:
1111
- Ian Beck
1212
13-
version: 2.0.1
13+
version: 2.0.2
1414
1515
Core class design based on the Mootools Database class by André Fiedler:
1616
http://github.com/SunboX/mootools-database/
@@ -71,6 +71,12 @@ enyo.kind({
7171
insertData: enyo.bind(this, this.insertData),
7272
_errorHandler: enyo.bind(this, this._errorHandler)
7373
};
74+
75+
// @deprecated methods and properties; provided for backwards compatibility
76+
this.lastInsertID = this.lastInsertId;
77+
this.setSchemaFromURL = this.setSchemaFromUrl;
78+
this.insertDataFromURL = this.insertDataFromUrl;
79+
this.changeVersionWithSchemaFromURL = this.changeVersionWithSchemaFromUrl;
7480
},
7581

7682
/** @protected */
@@ -113,8 +119,6 @@ enyo.kind({
113119
lastInsertId: function() {
114120
return this.lastInsertRowId;
115121
},
116-
// @deprecated Provided for backwards compatibility
117-
lastInsertID: this.lastInsertId,
118122

119123
/**
120124
* Close the database connection
@@ -376,8 +380,6 @@ enyo.kind({
376380
setSchemaFromUrl: function(url, options) {
377381
this._readUrl(url, this.bound.setSchema, options);
378382
},
379-
// @deprecated Provided for backwards compatibility
380-
setSchemaFromURL: this.setSchemaFromUrl,
381383

382384
/**
383385
* Inserts arbitrary data from a Javascript object
@@ -443,8 +445,6 @@ enyo.kind({
443445
insertDataFromUrl: function(url, options) {
444446
this._readUrl(url, this.bound.insertData, options);
445447
},
446-
// @deprecated Provided for backwards compatibility
447-
insertDataFromURL: this.insertDataFromUrl,
448448

449449

450450
// === VERSIONING METHODS ===
@@ -534,8 +534,6 @@ enyo.kind({
534534
changeVersionWithSchemaFromUrl: function(newVersion, url, options) {
535535
this._readUrl(url, enyo.bind(this, this.changeVersionWithSchema, newVersion));
536536
},
537-
// @deprecated Provided for backwards compatibility
538-
changeVersionWithSchemaFromURL: this.changeVersionWithSchemaFromUrl,
539537

540538

541539
// === SQL Methods ===

0 commit comments

Comments
 (0)