Skip to content
Browse files

Small fixes

  • Loading branch information...
1 parent aafc335 commit 12c8952147ed27c5d39fb61bda5216b3a0e37e75 Jeffrey Heifetz committed May 15, 2011
Showing with 15 additions and 7 deletions.
  1. +3 −2 api/html5_database.js
  2. +11 −4 api/html5_media_source.js
  3. +1 −1 cookbook/blackberry_example_class.js
View
5 api/html5_database.js
@@ -26,14 +26,15 @@ Database ={
/**
* @function
* @constructedBy Window.openDatabase
- * @description Asynchronously creates a new databse object.
+ * @description Creates a new databse object.
* If the database already exists, the existing database will be returned and the creation callback will not be invoked.
* @param {String} name The name of the database to be created
* @param {String} version The version of the database to be created
* @param {String} displayName The display name of the database to be created
* @param {Number} estimatedSize The estimated size in bytes of the database
- * @callback {function} creationCallback The callback will be invoked on database creation
+ * @callback {function} creationCallback The callback will be invoked when the database is first created.
* @callback {Database} creationCallback.database The newly created database
+ * @returns {Database} The database object that has been opened.
* @example
* Database db=Window.openDatabase('documents', '1.0', 'Offline document storage', 5*1024*1024, null);
* @PB10
View
15 api/html5_media_source.js
@@ -27,10 +27,6 @@
* media resources for media elements. It does not represent anything
* on its own.
* @extends HTMLElement
-* @constructedBy {document.createElement("source")} {HTMLSourceElement can be constructed by using the document.createElement() method.}
-* var source = document.createElement("source");
-* @BB60+
-* @PB10
* @example
* <video controls autoplay>
* <source src=\'video.mp4\' type=\'video/mp4; codecs=\"avc1.42E01E, mp4a.40.2\"\'>
@@ -42,6 +38,17 @@
HTMLSourceElement = function() { };
/**
+ * @field
+ * @constructedBy document.createElement("source")
+ * @description Creates an HTMLSourceElement
+ * @example
+ * var source = document.createElement("source");
+ * @PB10
+ * @BB60+
+ */
+HTMLSourceElement.documentConstructor = undefined;
+
+/**
* The src attribute gives the address of the media resource. The value
* must be a valid non-empty URL potentially surrounded by spaces. This
* attribute must be present.
View
2 cookbook/blackberry_example_class.js
@@ -49,7 +49,7 @@ blackberry.exampleClass.CONSTANT_C = 3;
/**
* @constructedBy Window.makeExampleClass
* @function
- * @param {String} s StringZorZ
+ * @param {String} s A string paramter
* @description A constructor with a customName
* @PB10
*/

0 comments on commit 12c8952

Please sign in to comment.
Something went wrong with that request. Please try again.