Skip to content

Commit

Permalink
Remove the new operators in the Assets Docs, it are just static fun…
Browse files Browse the repository at this point in the history
…ctions in the Assets object so do not need the operator (thanks Oskar)
  • Loading branch information
Arian committed Oct 25, 2010
1 parent 24c3ed1 commit b7acf96
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Docs/Utilities/Assets.md
Expand Up @@ -25,7 +25,7 @@ Injects a script tag into the head section of the document, pointing to the src

### Examples

var myScript = new Asset.javascript('/scripts/myScript.js', {
var myScript = Asset.javascript('/scripts/myScript.js', {
id: 'myScript',
events: {
load: function(){
Expand All @@ -45,7 +45,7 @@ Injects a css file in the page.

### Syntax

var myCSS = new Asset.css(source[, properties]);
var myCSS = Asset.css(source[, properties]);

### Arguments

Expand All @@ -58,7 +58,7 @@ Injects a css file in the page.

### Examples

var myCSS = new Asset.css('/css/myStyle.css', {id: 'myStyle', title: 'myStyle'});
var myCSS = Asset.css('/css/myStyle.css', {id: 'myStyle', title: 'myStyle'});

### Notes

Expand All @@ -71,7 +71,7 @@ Preloads an image and returns the img element.

### Syntax

var myImage = new Asset.image(source[, properties]);
var myImage = Asset.image(source[, properties]);

### Arguments

Expand All @@ -84,7 +84,7 @@ Preloads an image and returns the img element.

### Examples

var myImage = new Asset.image('/images/myImage.png', {
var myImage = Asset.image('/images/myImage.png', {
id: 'myImage',
title: 'myImage',
onLoad: myFunction
Expand All @@ -102,7 +102,7 @@ Preloads an array of images (as strings) and returns an array of img elements. d

### Syntax

var myImages = new Asset.images(source[, options]);
var myImages = Asset.images(source[, options]);

### Arguments

Expand Down Expand Up @@ -149,7 +149,7 @@ Preloads an array of images (as strings) and returns an array of img elements. d

#### Examples

var myImages = new Asset.images(['/images/myImage.png', '/images/myImage2.gif'], {
var myImages = Asset.images(['/images/myImage.png', '/images/myImage2.gif'], {
onComplete: function(){
alert('All images loaded!');
}
Expand Down

0 comments on commit b7acf96

Please sign in to comment.